-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscaffold.yaml
75 lines (71 loc) · 1.7 KB
/
scaffold.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
messages:
pre: |
# Go urfave/cli/v2 Project Scaffold
Generate boilerplate code for a new urfave/cli/v2 project.
post: |
# Get Started
```sh
cd {{ .ProjectKebab }}
task run -- hello
```
skip:
- "*.goreleaser.yaml"
- "*taskfile.yml"
questions:
- name: "gomod"
group: "general"
prompt:
message: "Go Module Path"
description: "e.g. github.com/username/project"
- name: "full_name"
group: "general"
prompt:
message: "Developers Name"
description: "For License and README"
required: true
- name: "description"
group: "general"
prompt:
message: "Description"
description: "A short description of the project"
multi: true
required: true
- name: "open_source_license"
group: "general"
prompt:
message: "License"
description: "Choose a license for your project"
default: "MIT license"
options:
- "MIT license"
- "BSD license"
- "ISC license"
- "Apache Software License 2.0"
- "GNU General Public License v3"
- name: "ci_provider"
group: "cli"
prompt:
message: "CI Provider"
description: "Choose a CI provider for your project"
default: "github"
options:
- "github"
- "drone.io"
- "none"
- name: "commands"
group: "cli"
prompt:
message: "Commands"
description: "List of commands to generate (kebab case)"
loop: true
presets:
test:
Project: "cli-test"
gomod: "github.com/username/project"
full_name: "John Doe"
description: "A new project"
open_source_license: "MIT license"
ci_provider: "github"
commands:
- "hello"
- "goodbye"