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
# easygen - Easy to use universal code/text generator
26
27
27
28
Command `easygen` is an easy to use universal code/text generator.
28
29
29
-
It can be used as a text or html generator for arbitrary purposes with arbitrary data and templates.
30
+
It can be used as a text or html generator for _arbitrary_ purposes with _arbitrary_ data and templates.
30
31
31
32
It can be used as a code generator, or anything that is structurally repetitive. Some command line parameter handling code generator are provided as examples, including the Go's built-in `flag` package, and the `viper` & `cobra` package.
32
33
@@ -37,6 +38,8 @@ You can even use easygen as a generic Go template testing tool using the `-ts` c
37
38
38
39
### $ easygen
39
40
```sh
41
+
easygen version git-master
42
+
40
43
Usage:
41
44
easygen [flags] YamlFileName [YamlFileName...]
42
45
@@ -48,12 +51,6 @@ Flags:
48
51
extension of template file (default ".tmpl")
49
52
-ey extension
50
53
extension of yaml file (default ".yaml")
51
-
-html
52
-
treat the template file as html instead of text
53
-
-rf string
54
-
replace from, the from string used for the replace function
55
-
-rt string
56
-
replace to, the to string used for the replace function
57
54
-tf name(s)
58
55
.tmpl (comma-separated) template file name(s) (default: same as .yaml file)
0 commit comments