Fix compose template
This commit is contained in:
2
main.go
2
main.go
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user