mirror of
https://github.com/ovh/ovhcloud-cli.git
synced 2026-01-16 23:00:38 +00:00
doc: Fix s3 bulk-delete help + update docs
Signed-off-by: Arthur Amstutz <arthur.amstutz@corp.ovh.com>
This commit is contained in:
parent
1cabe6c5d8
commit
5cbfefdff8
7 changed files with 11 additions and 7 deletions
|
|
@ -3,7 +3,7 @@
|
|||
Bulk delete objects in the given storage container
|
||||
|
||||
```
|
||||
ovhcloud cloud storage-s3 bulk-delete [flags]
|
||||
ovhcloud cloud storage-s3 bulk-delete <container_name> [flags]
|
||||
```
|
||||
|
||||
### Options
|
||||
|
|
|
|||
|
|
@ -31,6 +31,6 @@ Retrieve information and manage your domain zones
|
|||
* [ovhcloud](ovhcloud.md) - CLI to manage your OVHcloud services
|
||||
* [ovhcloud domain-zone get](ovhcloud_domain-zone_get.md) - Retrieve information of a specific domain zone
|
||||
* [ovhcloud domain-zone list](ovhcloud_domain-zone_list.md) - List your domain zones
|
||||
* [ovhcloud domain-zone record](ovhcloud_domain-zone_record.md) - Retrieve information and manage your DNS record within a zone
|
||||
* [ovhcloud domain-zone record](ovhcloud_domain-zone_record.md) - Retrieve information and manage your DNS records within a zone
|
||||
* [ovhcloud domain-zone refresh](ovhcloud_domain-zone_refresh.md) - Refresh the given zone
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
## ovhcloud domain-zone record
|
||||
|
||||
Retrieve information and manage your DNS record within a zone
|
||||
Retrieve information and manage your DNS records within a zone
|
||||
|
||||
### Options
|
||||
|
||||
|
|
|
|||
|
|
@ -32,5 +32,5 @@ ovhcloud domain-zone record get <zone_name> <record_id> [flags]
|
|||
|
||||
### SEE ALSO
|
||||
|
||||
* [ovhcloud domain-zone record](ovhcloud_domain-zone_record.md) - Retrieve information and manage your DNS record within a zone
|
||||
* [ovhcloud domain-zone record](ovhcloud_domain-zone_record.md) - Retrieve information and manage your DNS records within a zone
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,11 @@ ovhcloud domain-zone record update <zone_name> <record_id> [flags]
|
|||
### Options
|
||||
|
||||
```
|
||||
--editor Use a text editor to define parameters
|
||||
--from-file string File containing parameters
|
||||
-h, --help help for update
|
||||
--init-file string Create a file with example parameters
|
||||
--replace Replace parameters file if it already exists
|
||||
--subdomain string Subdomain to update
|
||||
--target string New target to apply
|
||||
--ttl int New TTL to apply
|
||||
|
|
@ -35,5 +39,5 @@ ovhcloud domain-zone record update <zone_name> <record_id> [flags]
|
|||
|
||||
### SEE ALSO
|
||||
|
||||
* [ovhcloud domain-zone record](ovhcloud_domain-zone_record.md) - Retrieve information and manage your DNS record within a zone
|
||||
* [ovhcloud domain-zone record](ovhcloud_domain-zone_record.md) - Retrieve information and manage your DNS records within a zone
|
||||
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ func initCloudStorageS3Command(cloudCmd *cobra.Command) {
|
|||
|
||||
// Bulk-delete command
|
||||
bulkDeleteCmd := &cobra.Command{
|
||||
Use: "bulk-delete",
|
||||
Use: "bulk-delete <container_name>",
|
||||
Short: "Bulk delete objects in the given storage container",
|
||||
Run: cloud.StorageS3BulkDeleteObjects,
|
||||
Args: cobra.ExactArgs(1),
|
||||
|
|
|
|||
|
|
@ -265,7 +265,7 @@ func StorageS3BulkDeleteObjects(_ *cobra.Command, args []string) {
|
|||
}
|
||||
|
||||
if len(StorageS3ObjectsToDelete) == 0 {
|
||||
display.OutputWarning(&flags.OutputFormatConfig, "no objects to delete. Use --object flag to specify objects to delete")
|
||||
display.OutputWarning(&flags.OutputFormatConfig, "no objects to delete. Use --objects flag to specify objects to delete")
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue