aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd/app/main.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-06-26 21:56:07 +0900
committerOphestra <cat@gensokyo.uk>2026-06-26 21:56:07 +0900
commit6863bcafd14e7f9ac2bc25b67323db589d6fe752 (patch)
tree7b6df93ace0a57bac6d5f78e10fabbd85fbaf53a /cmd/app/main.go
parent39f023d0e507662171caf5c7a9a8f896e05810b2 (diff)
cmd/app: optional insecure options
These are useful for very specific cases by the maintainer. No app should ever require this. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'cmd/app/main.go')
-rw-r--r--cmd/app/main.go13
1 files changed, 9 insertions, 4 deletions
diff --git a/cmd/app/main.go b/cmd/app/main.go
index c698037b..146a5546 100644
--- a/cmd/app/main.go
+++ b/cmd/app/main.go
@@ -33,8 +33,9 @@ func main() {
defer stop()
var (
- flagVerbose bool
- flagBase string
+ flagVerbose bool
+ flagBase string
+ flagInsecure bool
base, template, initial *check.Absolute
)
@@ -61,6 +62,10 @@ func main() {
&flagBase,
"d", command.StringFlag("$ROSA_APP_PATH"),
"Configuration and state directory",
+ ).Flag(
+ &flagInsecure,
+ "insecure", command.BoolFlag(false),
+ "Allow use of insecure compatibility options",
)
{
@@ -132,7 +137,7 @@ func main() {
if err != nil {
return err
}
- err = run(ctx, msg, &config)
+ err = run(ctx, msg, false, &config)
return errors.Join(err, remove())
},
).Flag(
@@ -206,7 +211,7 @@ func main() {
if err = enterTemplate(base, name); err != nil {
return err
}
- return run(ctx, msg, config, args[1:]...)
+ return run(ctx, msg, flagInsecure, config, args[1:]...)
},
).
Flag(