sketch run command

This commit is contained in:
Pavel Sviderski committed 2024-10-31 20:07:45 +10:00
1 parent 8a3f0032ae
commit 5bf3cba2d6
2 files changed
+43 -1

No files matched your search

+2 -1
View File
@@ -36,11 +36,12 @@ func main() {
}
// TODO: allow to override using UNCLOUD_CONFIG env var.
cmd.PersistentFlags().StringVar(&configPath, "uncloud-config", "~/.config/uncloud/config.toml",
"path to the Uncloud configuration file")
"path to the Uncloud configuration file.")
_ = cmd.MarkPersistentFlagFilename("uncloud-config", "toml")
cmd.AddCommand(
machine.NewRootCommand(),
NewRunCommand(),
)
cobra.CheckErr(cmd.Execute())
}