-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.backpack-project.yaml
87 lines (87 loc) · 2.11 KB
/
.backpack-project.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
76
77
78
79
80
81
82
83
84
85
86
87
#
# get backpack: https://github.com/rusty-ferris-club/backpack
# to add this project as a template, clone it and run `bp add`:
#
# $ git clone https://github.com/rusty-ferris-club/rust-starter
# $ cd rust-starter
# $ bp add
#
project:
shortlink: rusty-ferris-club/rust-starter
actions:
- name: project
interaction:
kind: input
prompt: project name (e.g. newtool)
out: project
hook: before
- name: bin
interaction:
kind: input
prompt: binary name (e.g. newtool)
out: bin
hook: before
- name: repo
interaction:
kind: input
prompt: repo name (e.g. jondot/newtool)
out: repo
hook: before
- name: url
interaction:
kind: input
prompt: "repo URL (e.g. https://github.com/jondot/newtool)"
out: url
hook: before
- name: formula
interaction:
kind: input
prompt: brew formula name (e.g. Newtool)
out: formula
hook: before
- name: tap
interaction:
kind: input
prompt: brew tap name (e.g. jondot/homebrew-tap)
out: tap
hook: before
- name: description
interaction:
kind: input
prompt: description (e.g. one liner)
out: description
hook: before
- name: author
interaction:
kind: input
prompt: author (e.g. [email protected])
out: author
hook: before
swaps:
- key: __V_PROJECT_NAME__
val_template: "{{project}}"
path: ".*"
- key: __V_REPO_NAME__
val_template: "{{repo}}"
path: ".*"
- key: __V_REPO_URL__
val_template: "{{url}}"
path: ".*"
- key: __V_PROJECT_FORMULA__
val_template: "{{formula}}"
path: ".*"
- key: __V_TAP_NAME__
val_template: "{{tap}}"
path: ".*"
- key: __V_BIN_NAME__
val_template: "{{bin}}"
path: ".*"
- key: __v_bin_name__
val_template: "{{bin}}"
path: ".*"
- key: __V_AUTHOR__
val_template: "{{author}}"
path: ".*"
- key: __V_DESCRIPTION__
val_template: "{{description}}"
path: ".*"