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

Commit

Permalink
add info on cargo.toml, can pull version cargo.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
guni1192 committed Feb 4, 2019
1 parent 62ae7a7 commit 04b51db
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ version = "0.1.0"
authors = ["Takashi IIGUNI <ad2314ce71926@gmail.com>"]
description = "Rust Rootless Container Runtime"
license = "MIT"
license-file = "LICENSE"
readme = "README.md"
repository = "https://github.com/guni192/cromwell"
edition = "2018"

Expand Down
8 changes: 4 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::process::exit;

use clap::{App, Arg, SubCommand};
use clap::{App, Arg, SubCommand, crate_name,crate_version};

mod bootstrap;
mod commands;
Expand All @@ -10,15 +10,15 @@ mod network;
mod runner;

fn main() {
let mut app = App::new("Cromwell")
.version("v0.1.0")
let mut app = App::new(crate_name!())
.version(crate_version!())
.author("Takashi IIGUNI <ad2314ce71926@gmail.com>")
.about("Ownership Managed Container Runntime");
let app_matches = &app
.clone()
.subcommand(
SubCommand::with_name("run")
.version("v1.0.0")
.version(crate_version!())
.about("run cromwell container")
.arg(
Arg::with_name("container_name")
Expand Down

0 comments on commit 04b51db

Please sign in to comment.