Skip to content

Commit

Permalink
make more parameters optional
Browse files Browse the repository at this point in the history
  • Loading branch information
caguiclajmg committed Jun 25, 2022
1 parent 55d5711 commit 92445d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ $ tensordock-cli servers delete --server SERVER_ID

```sh
$ tensordock-cli servers deploy \
[--gpuModel GPU_MODEL \]
[--location LOCATION \]
[--instanceType INSTANCE_TYPE \]
[--gpuCount GPU_COUNT \]
[--vcpus VCPUS \]
Expand All @@ -61,8 +63,6 @@ $ tensordock-cli servers deploy \
[--os OS \]
--adminUser ADMIN_USER \
--adminPass ADMIN_PASS \
--gpuModel GPU_MODEL \
--location LOCATION \
--name NAME
```
Expand Down
6 changes: 2 additions & 4 deletions commands/servers.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,10 @@ func init() {
deployCmd.MarkFlagRequired("adminUser")
deployCmd.Flags().String("adminPass", "", "Your desired administrator password. Please change it once you access your server")
deployCmd.MarkFlagRequired("adminPass")
deployCmd.Flags().String("gpuModel", "", "The GPU model that you would like to provision")
deployCmd.MarkFlagRequired("gpuModel")
deployCmd.Flags().String("location", "", "Location")
deployCmd.MarkFlagRequired("location")
deployCmd.Flags().String("name", "", "Name of your server in our dashboard")
deployCmd.MarkFlagRequired("name")
deployCmd.Flags().String("gpuModel", "A40", "The GPU model that you would like to provision")
deployCmd.Flags().String("location", "na-us-las-1", "Location")
deployCmd.Flags().String("instanceType", "gpu", "Either \"gpu\" or \"cpu\"")
deployCmd.Flags().Int("gpuCount", 1, "The number of GPUs of the model you specified earlier")
deployCmd.Flags().Int("vcpus", 1, "Number of vCPUs that you would like")
Expand Down

0 comments on commit 92445d6

Please sign in to comment.