diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-06-26 21:56:07 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-06-26 21:56:07 +0900 |
| commit | 6863bcafd14e7f9ac2bc25b67323db589d6fe752 (patch) | |
| tree | 7b6df93ace0a57bac6d5f78e10fabbd85fbaf53a /cmd/app/run.go | |
| parent | 39f023d0e507662171caf5c7a9a8f896e05810b2 (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/run.go')
| -rw-r--r-- | cmd/app/run.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/app/run.go b/cmd/app/run.go index b8512579..71d8ff96 100644 --- a/cmd/app/run.go +++ b/cmd/app/run.go @@ -15,6 +15,7 @@ import ( func run( ctx context.Context, msg message.Msg, + insecure bool, config *hst.Config, args ...string, ) error { @@ -29,6 +30,9 @@ func run( if msg.IsVerbose() { cmd.Args = append(cmd.Args, "-v") } + if insecure { + cmd.Args = append(cmd.Args, "--insecure") + } cmd.Args = append(cmd.Args, "run", "3") cmd.Args = append(cmd.Args, args...) |
