Skip to content

Commit f9cf5b5

Browse files
committed
Update LightCli to 1.0.4
1 parent 929b843 commit f9cf5b5

3 files changed

Lines changed: 8 additions & 7 deletions

File tree

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ In this example we'll use txt and c# files, but you can define any kind of files
1010

1111
To create a new template, you just have to add a new folder inside the folder **flash-templates**, which has to be located together with flash executable.
1212

13-
Inside your folder, just put your template files and directories and a **config.json** (optional).
13+
Inside your folder, just put your template files and folders and a **config.json** (optional).
1414

1515
The folder structure is like this:
1616

@@ -29,12 +29,12 @@ With the structure above, you can use the "use-case" template.
2929

3030
## The config.json file
3131

32-
The config.json file is optional and contains all of the template configuration, which are the template's description and variables.
32+
The config.json file is optional and contains all of the template configuration, which are the template description and variables.
3333

34-
The template's description will be show to user when it interacts with the flash CLI, to help it to understand what that template does.
35-
36-
The variables are used to replace the occurrences on the template files and directories.
34+
The template description will be shown to the user when they interact with the flash CLI, to help them understand what that template does.
3735

36+
The variables are used to replace the occurrences on the template files and folders.
37+
3838
The config.json structure example:
3939

4040
```json
@@ -64,6 +64,7 @@ As you declared two variables **UseCaseName** and **Repository**, you will be as
6464
```bash
6565
$ flash new use-case
6666
Enter the use case name: MyFirstUseCase
67+
Enter the repository name: MyRepo
6768
```
6869
6970
## The magic happening

src/flash/Commands/NewCommandArgs.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace flash.Commands
55
{
66
public class NewCommandArgs : IArgs
77
{
8-
[IndexArg(1, description: "Template name")]
8+
[IndexArg(1, description: "Template name", false)]
99
public string TemplateName { get; set; }
1010
}
1111
}

src/flash/flash.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="LightCli" Version="1.0.3" />
10+
<PackageReference Include="LightCli" Version="1.0.4" />
1111
</ItemGroup>
1212

1313
</Project>

0 commit comments

Comments
 (0)