Skip to content
This repository has been archived by the owner on Jul 9, 2020. It is now read-only.

Commit

Permalink
Refactor and Update to 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
PhnxRbrn committed Nov 24, 2015
1 parent 83a60f7 commit eb9b5c5
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "file_compare"
version = "0.1.0"
version = "1.0.0"
authors = ["Chris Palmer <pennstate5013@gmail.com>"]
license = "GPL-3.0"
description = "compare two files to see if lines in first file exist in the second file"
Expand Down
8 changes: 4 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ extern crate clap;
use clap::{Arg, App};

fn main() {
let matches = App::new("file_compare")
.version("0.1.0")
.author("Chris Palmer <pennstate5013@gmail.com>")
.about("compare two files to see if lines in first file exist in the second file")
let matches = App::new(util::get_name())
.version(util::get_version())
.author(util::get_author())
.about(util::get_about())
.arg(Arg::with_name("INPUT")
.help("Sets the input file to use to check")
.required(true)
Expand Down
16 changes: 16 additions & 0 deletions src/util/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,19 @@ pub fn read_to_vec(path_str: &str) -> Vec<String> {

file_vec
}

pub fn get_version() -> &'static str {
"1.0.0"
}

pub fn get_name() -> &'static str {
"file_compare"
}

pub fn get_author() -> &'static str {
"Chris Palmer <pennstate5013@gmail.com>"
}

pub fn get_about() -> &'static str {
"compare two files to see if lines in first file exist in the second file"
}

0 comments on commit eb9b5c5

Please sign in to comment.