-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflags.go
More file actions
98 lines (80 loc) · 2.33 KB
/
flags.go
File metadata and controls
98 lines (80 loc) · 2.33 KB
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
88
89
90
91
92
93
94
95
96
97
98
package main
import "github.com/urfave/cli"
var inputFlag = cli.StringFlag{
Name: "input, i",
Value: "",
Usage: "Input file with values for replacement",
}
var repoFlag = cli.StringFlag{
Name: "repo, r",
Value: "",
Usage: "Url to execute clone actions",
}
var outputDirFlag = cli.StringFlag{
Name: "outputDir, od",
Value: "",
Usage: "Output directory to execute clone actions",
}
var dirFlag = cli.StringFlag{
Name: "dir, d",
Value: "",
Usage: "Target directory for templating (used by template command)",
}
var verboseFlag = cli.BoolFlag{
Name: "verbose, v",
Usage: "Enable verbose mode for detailed logs",
}
var fileSizeLimitFlag = cli.StringFlag{
Name: "fileSizeLimit, fl",
Value: "3 mb",
Usage: "File size limit to ignore replacements from files that exceed the limit",
}
var startDelimFlag = cli.StringFlag{
Name: "startDelim, sd",
Value: "[[",
Usage: "Template start delimiter (default [[)",
}
var endDelimFlag = cli.StringFlag{
Name: "endDelim, ed",
Value: "]]",
Usage: "Template end delimiter (default ]])",
}
var interactiveFlag = cli.BoolFlag{
Name: "interactive, prompt, p",
Usage: "Prompt for values for discovered placeholders before applying",
}
var branchFlag = cli.StringFlag{
Name: "branch, b",
Value: "",
Usage: "Branch to use for generate/clone when non-interactive",
}
var templateNameFlag = cli.StringFlag{
Name: "template, templateName",
Value: "",
Usage: "Template name or URL substring to select non-interactively",
}
var processTemplatesFlag = cli.BoolFlag{
Name: "processTemplates, pt",
Usage: "Process .tpl files by evaluating templates and removing .tpl suffix",
}
var onlyTemplatesFlag = cli.BoolFlag{
Name: "onlyTemplates, ot",
Usage: "When used with --processTemplates, only process .tpl files and ignore all other files",
}
var dryRunFlag = cli.BoolFlag{
Name: "dryRun, dr",
Usage: "Preview what would be changed without writing any files",
}
var ignoreFlag = cli.StringSliceFlag{
Name: "ignore",
Usage: "Glob patterns for files/directories to skip (e.g. --ignore '*.generated.*' --ignore 'migrations/*')",
}
var noCacheFlag = cli.BoolFlag{
Name: "noCache, nc",
Usage: "Bypass cache and fetch fresh data from remote",
}
var sshKeyFlag = cli.StringFlag{
Name: "ssh-key",
Value: "",
Usage: "Path to SSH private key (auto-detects id_ed25519, id_ecdsa, id_rsa if not set)",
}