Skip to content

Commit 0a9a7a9

Browse files
authored
Merge pull request #24 from ovh/dev/aamstutz/doc-fix
fix: Use the correct binary name in help commands
2 parents 7795800 + ad57944 commit 0a9a7a9

6 files changed

Lines changed: 19 additions & 19 deletions

File tree

doc/ovhcloud_cloud_instance_create.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ There are three ways to define the creation parameters:
5151

5252

5353
```
54-
ovhcloud cloud instance create <region (e.g. GRA, BHS, SBG)> [flags]
54+
ovhcloud cloud instance create <region (e.g. GRA9, BHS5, SBG3)> [flags]
5555
```
5656

5757
### Options

doc/ovhcloud_vps_automated-backup_reschedule.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ovhcloud vps automated-backup reschedule <service_name> <time> [flags]
99
### Examples
1010

1111
```
12-
ovh-cli vps automated-backup reschedule my-vps 15:04:05
12+
ovhcloud vps automated-backup reschedule my-vps 15:04:05
1313
```
1414

1515
### Options

doc/ovhcloud_vps_reinstall.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@ ovhcloud vps reinstall <service_name> [flags]
99
### Options
1010

1111
```
12-
--do-not-send-password Do not send the new password after reinstallation (only if sshKey defined)
13-
--editor Use a text editor to define parameters
14-
--from-file string File containing parameters
15-
-h, --help help for reinstall
16-
--image-id string ID of the image to use for reinstallation
17-
--image-selector Use the interactive image selector
18-
--init-file string Create a file with example parameters
19-
--install-rtm Install RTM during reinstallation
20-
--public-ssh-key string Public SSH key to pre-install on your VPS
21-
--replace Replace parameters file if it already exists
22-
--ssh-key ovh-cli account ssh-key list SSH key name to pre-install on your VPS (name can be found running ovh-cli account ssh-key list)
23-
--ssh-key-selector Use the interactive SSH key selector
24-
--wait Wait for reinstall to be done before exiting
12+
--do-not-send-password Do not send the new password after reinstallation (only if sshKey defined)
13+
--editor Use a text editor to define parameters
14+
--from-file string File containing parameters
15+
-h, --help help for reinstall
16+
--image-id string ID of the image to use for reinstallation
17+
--image-selector Use the interactive image selector
18+
--init-file string Create a file with example parameters
19+
--install-rtm Install RTM during reinstallation
20+
--public-ssh-key string Public SSH key to pre-install on your VPS
21+
--replace Replace parameters file if it already exists
22+
--ssh-key string SSH key name to pre-install on your VPS (name can be found running 'ovhcloud account ssh-key list')
23+
--ssh-key-selector Use the interactive SSH key selector
24+
--wait Wait for reinstall to be done before exiting
2525
```
2626

2727
### Options inherited from parent commands

internal/cmd/cloud_instance.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515

1616
func getInstanceCreationCmd() *cobra.Command {
1717
instanceCreateCmd := &cobra.Command{
18-
Use: "create <region (e.g. GRA, BHS, SBG)>",
18+
Use: "create <region (e.g. GRA9, BHS5, SBG3)>",
1919
Short: "Create a new instance",
2020
Long: `Use this command to create an instance in the given public cloud project.
2121
There are three ways to define the creation parameters:

internal/cmd/vps.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ func init() {
137137

138138
vpsBackupCmd.AddCommand(&cobra.Command{
139139
Use: "reschedule <service_name> <time>",
140-
Example: "ovh-cli vps automated-backup reschedule my-vps 15:04:05",
140+
Example: "ovhcloud vps automated-backup reschedule my-vps 15:04:05",
141141
Short: "Reschedule the automated backup of the given VPS",
142142
Args: cobra.ExactArgs(2),
143143
Run: vps.RescheduleVpsAutomatedBackup,
@@ -356,7 +356,7 @@ func init() {
356356
vpsReinstallCmd.Flags().StringVar(&vps.VpsReinstallSpec.ImageId, "image-id", "", "ID of the image to use for reinstallation")
357357
vpsReinstallCmd.Flags().BoolVar(&vps.VpsReinstallSpec.InstallRTM, "install-rtm", false, "Install RTM during reinstallation")
358358
vpsReinstallCmd.Flags().StringVar(&vps.VpsReinstallSpec.PublicSshKey, "public-ssh-key", "", "Public SSH key to pre-install on your VPS")
359-
vpsReinstallCmd.Flags().StringVar(&vps.VpsReinstallSpec.SshKey, "ssh-key", "", "SSH key name to pre-install on your VPS (name can be found running `ovh-cli account ssh-key list`)")
359+
vpsReinstallCmd.Flags().StringVar(&vps.VpsReinstallSpec.SshKey, "ssh-key", "", "SSH key name to pre-install on your VPS (name can be found running 'ovhcloud account ssh-key list')")
360360
addInitParameterFileFlag(vpsReinstallCmd, assets.VpsOpenapiSchema, "/vps/{serviceName}/rebuild", "post", vps.VpsReinstallExample, nil)
361361
addInteractiveEditorFlag(vpsReinstallCmd)
362362
addFromFileFlag(vpsReinstallCmd)

internal/http/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func InitClient() {
4141
}
4242
}
4343
if err != nil {
44-
log.Printf(`OVHcloud API client not initialized, please run "ovh-cli login" to authenticate (%s)`, err)
44+
log.Printf(`OVHcloud API client not initialized, please run "ovhcloud login" to authenticate (%s)`, err)
4545
} else {
4646
Client.Client.Transport = NewTransport("OVH", http.DefaultTransport)
4747
}

0 commit comments

Comments
 (0)