Skip to content

Commit

Permalink
change subcommand name
Browse files Browse the repository at this point in the history
  • Loading branch information
huobazi committed Jan 11, 2019
1 parent 0d849f9 commit 1a7e4a6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ public static int Main(string[] args)

app.HelpOption(inherited: true);

app.Command("gen", genCmd =>
app.Command("new", newCmd =>
{
genCmd.Description = "Generate a config file";
newCmd.Description = "Generate a config file";

var modelName = genCmd.Argument("model", "Name of the model").IsRequired();
var modelName = newCmd.Argument("model", "Name of the model").IsRequired();

genCmd.OnExecute(() =>
newCmd.OnExecute(() =>
{
var fileName = Path.Combine(Environment.CurrentDirectory, modelName.Value + ".config");
PerformConfigHelper.GenerateMockupConfig(fileName);
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Options:
-?|-h|--help Show help information

Commands:
gen Generate a config file
new Generate a config file
perform Performing your backup by config

Run 'dackup [command] --help' for more information about a command.
Expand All @@ -49,11 +49,11 @@ Use arrow keys to scroll. Press 'q' to exit.
```

```bash
$ /your_path/dackup gen
$ /your_path/dackup new

Generate a config file

Usage: dackup gen [arguments] [options]
Usage: dackup new [arguments] [options]

Arguments:
model Name of the model
Expand Down Expand Up @@ -81,10 +81,10 @@ Use arrow keys to scroll. Press 'q' to exit.

## Configuration

use the subcommand ``` gen ``` to generate a task config file
use the subcommand ``` new ``` to generate a task config file

```bash
/your_path/dackup gen my_first_task
/your_path/dackup new my_first_task
```


Expand Down

0 comments on commit 1a7e4a6

Please sign in to comment.