You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,11 +47,11 @@ Tip: | in YAML is for multiline text
47
47
-[x]`--configdir` flag to let the user specify path to custom config folder. Fallback to default path if empty, also let user get the config from current working directory
48
48
-[x] Remember custom config directory if specified AND `--remember` is true (by default false)
49
49
-[x] Additional error handling for new features
50
-
-[x] YAML variables that can be set using a flag. $MY_VAR: Test, a: {MY_VAR}. Parse and replace {MY_VAR} with the actual value.
50
+
-[x] YAML variables that can be set using flags
51
51
52
52
## Install
53
53
54
-
If you are not planning to contribue OR you don't need the very last releases:
54
+
If you are not planning to contribute OR you don't need the very last releases:
55
55
56
56
### Linux / MacOS
57
57
@@ -162,13 +162,13 @@ $ go build
162
162
# Arguments with ? are optional.
163
163
$ scaffold --name <project name> --yaml <config name> --configdir? <path to custom folder if exists> --git? <true/false> --remember? <true/false>
164
164
```
165
-
scaffolder 1.1.7:
165
+
Scaffolder 1.1.7:
166
166
167
-
-`--variables` - new flag introduced to allow you set yaml varibales which can be used when scaffolding your project
167
+
-`--variables` - New flag introduced to allow you set yaml varibales which can be used when scaffolding your project
168
168
169
169
Example:
170
170
```bash
171
-
$ scaffold --name example --yaml "hello" --variables language:go,type:compiled
171
+
$ scaffold --name example --yaml "hello" --variables language:go,type:compiled
172
172
```
173
173
```yaml
174
174
hello:
@@ -180,7 +180,7 @@ hello:
180
180
type := "{type}"
181
181
182
182
func main(){
183
-
fmt.Println("%s is %s", name,type)
183
+
fmt.Printf("%s is %s", name,type)
184
184
}
185
185
```
186
186
Result
@@ -193,12 +193,12 @@ with hello.go having the content
0 commit comments