Skip to content

Commit

Permalink
Require --cpu and --memory on ps resize command
Browse files Browse the repository at this point in the history
  • Loading branch information
ipmb committed May 26, 2023
1 parent 2506190 commit f7496fb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/ps.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,8 @@ func init() {
psCmd.AddCommand(psResizeCmd)
psResizeCmd.Flags().Float64Var(&scaleCPU, "cpu", 0.5, "CPU cores available for process")
psResizeCmd.Flags().StringVar(&scaleMemory, "memory", "1G", "memory (e.g. '2G', '512M') available for process")
psResizeCmd.MarkFlagRequired("cpu")
psResizeCmd.MarkFlagRequired("memory")

psCmd.AddCommand(psScaleCmd)
psCmd.AddCommand(psExecCmd)
Expand Down

0 comments on commit f7496fb

Please sign in to comment.