Skip to content

Commit

Permalink
Merge pull request #222 from whostolemyhat/new-cmd
Browse files Browse the repository at this point in the history
Rename the 'new' command to 'init'
  • Loading branch information
epage committed May 15, 2017
2 parents eb9e0b0 + 7dd81c3 commit fe3a246
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -55,7 +55,7 @@ There are a few people already using `cobalt`. Here is a list of projects and th
## Usage

```
$ cobalt new myBlog
$ cobalt init myBlog
$ cobalt build -s myBlog -d path/to/your/destination
```

Expand Down
4 changes: 2 additions & 2 deletions src/main.rs
Expand Up @@ -104,7 +104,7 @@ fn main() {
.help("Suppress all output")
.global(true)
.takes_value(false))
.subcommand(SubCommand::with_name("new")
.subcommand(SubCommand::with_name("init")
.about("create a new cobalt project")
.arg(Arg::with_name("DIRECTORY")
.help("Suppress all output")
Expand Down Expand Up @@ -245,7 +245,7 @@ fn main() {
config.include_drafts = matches.is_present("drafts");

match command {
"new" => {
"init" => {
let directory = matches.value_of("DIRECTORY").unwrap();

match create_new_project(&directory.to_string()) {
Expand Down

0 comments on commit fe3a246

Please sign in to comment.