Fix compose template

This commit is contained in:
2026-06-24 13:51:43 -04:00
parent f098d5f170
commit 42453ef16e
3 changed files with 3 additions and 3 deletions

View File

@@ -62,7 +62,7 @@ func init() {
createCmd.Flags().StringVarP(&config.Cfg.Type, "type", "t", "VANILLA", "set the type of the server")
createCmd.Flags().StringVarP(&config.Cfg.Ram, "ram", "r", "2G", "set the memory limit of the server")
createCmd.Flags().StringVarP(&config.Cfg.MOTD, "motd", "m", "This server was created using mc-tool", "set the message of the day for the server")
createCmd.Flags().StringVarP(&config.Cfg.RestartPolicy, "restart", "R", "never", "what to do when the server fails or host turns off")
createCmd.Flags().StringVarP(&config.Cfg.RestartPolicy, "restart", "R", "no", "what to do when the server fails or host turns off")
createCmd.Flags().FuncP("port", "p", "set additional ports for the container to expose", func(s string) error {
config.Cfg.Ports = append(config.Cfg.Ports, s)
return nil