mirror of
https://github.com/XAMPPRocky/tokei
synced 2024-10-05 23:39:28 +00:00
Added copyright and contributors
This commit is contained in:
parent
b5ccff6d37
commit
0d84ae01b2
11
CONTRIBUTORS.md
Normal file
11
CONTRIBUTORS.md
Normal file
|
@ -0,0 +1,11 @@
|
|||
# Contributors
|
||||
|
||||
The list of contributors is sorted alphabetical based on the last names.
|
||||
|
||||
The list of languages is sorted alphabetical.
|
||||
|
||||
## Code
|
||||
* Chris Palmer (https://github.com/PhnxRbrn)
|
||||
* Aaron Power (https://github.com/Aaronepower)
|
||||
|
||||
## Translations
|
|
@ -1,3 +1,6 @@
|
|||
# Copyright (c) 2015 Aaron Power
|
||||
# Use of this source code is governed by the MIT license that can be
|
||||
# found in the LICENSE file.
|
||||
[package]
|
||||
name = "tokei"
|
||||
version = "1.1.0"
|
||||
|
|
3
cli.yml
3
cli.yml
|
@ -1,3 +1,6 @@
|
|||
# Copyright (c) 2015 Aaron Power
|
||||
# Use of this source code is governed by the MIT license that can be
|
||||
# found in the LICENSE file.
|
||||
name: Tokei
|
||||
version: 1.1
|
||||
author: Aaron P. <theaaronepower@gmail.com>
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// Copyright (c) 2015 Aaron Power
|
||||
// Use of this source code is governed by the MIT license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
extern crate glob;
|
||||
|
||||
use std::fs;
|
||||
|
@ -11,7 +15,7 @@ pub fn contains_comments(file: &str, comment: &str) -> bool {
|
|||
} else {
|
||||
None
|
||||
}
|
||||
|
||||
|
||||
}).collect::<Vec<&str>>();
|
||||
|
||||
let length = vector.len();
|
||||
|
@ -56,7 +60,7 @@ pub fn get_all_files(path: String, ignored_directories: &Vec<String>) -> Vec<Str
|
|||
'file: for entry in dir {
|
||||
let entry = unwrap_rs_cont!(entry);
|
||||
let file_path = entry.path();
|
||||
let file_str = unwrap_opt_cont!(file_path.to_str());
|
||||
let file_str = unwrap_opt_cont!(file_path.to_str());
|
||||
let file_string = file_str.to_owned();
|
||||
let path_metadata = unwrap_rs_cont!(metadata(file_str));
|
||||
|
||||
|
@ -80,7 +84,7 @@ pub fn get_all_files(path: String, ignored_directories: &Vec<String>) -> Vec<Str
|
|||
let iter = match glob(&path) {
|
||||
Ok(value) => value,
|
||||
Err(err) => panic!("{:?}", err)
|
||||
};
|
||||
};
|
||||
for path_buf in iter {
|
||||
let file_path = unwrap_opt_cont!(unwrap_rs_cont!(path_buf).as_path().to_str()).to_owned();
|
||||
files.push(file_path);
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// Copyright (c) 2015 Aaron Power
|
||||
// Use of this source code is governed by the MIT license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
use std::fmt;
|
||||
|
||||
pub struct Language<'a> {
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// Copyright (c) 2015 Aaron Power
|
||||
// Use of this source code is governed by the MIT license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#[inline(always)]
|
||||
macro_rules! unwrap_opt_cont {
|
||||
($option:expr) => {
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// Copyright (c) 2015 Aaron Power
|
||||
// Use of this source code is governed by the MIT license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#[macro_use]
|
||||
extern crate clap;
|
||||
|
||||
|
|
Loading…
Reference in a new issue