diff --git a/cmd/storage.go b/cmd/storage.go index 60dce8b1..c1517c57 100644 --- a/cmd/storage.go +++ b/cmd/storage.go @@ -60,7 +60,7 @@ func init() { return []cobra.Completion{http.MethodGet, http.MethodPut, http.MethodDelete}, cobra.ShellCompDirectiveDefault }) - runner.RegisterHook("auto-content-type", guessContentType) + storageCmd.PersistentFlags().Bool("no-auto-content-type", false, "Disable automatic content-type detection") } func callOOS(cmd *cobra.Command, args []string) { @@ -68,7 +68,11 @@ func callOOS(cmd *cobra.Command, args []string) { p := loadProfile(cmd) cl, err := oos.NewClient(cmd.Context(), p, awsOptions(cmd)...) if err == nil { - err = runner.Run[*oos.Client, oos.Error](cmd, args, cl, config.For("storage")) + var hooks []runner.Hook + if noAuto, _ := cmd.Flags().GetBool("no-auto-content-type"); !noAuto { + hooks = []runner.Hook{guessContentType} + } + err = runner.Run[*oos.Client, oos.Error](cmd, args, cl, config.For("storage"), hooks...) } if err != nil { _ = flags.CloseAll(cmd.Flags()) @@ -123,6 +127,8 @@ func presign(cmd *cobra.Command, args []string) { _, _ = fmt.Fprint(os.Stdout, req.URL) } +const detectionBufferSize = 32 * 1024 + func guessContentType(arg reflect.Value) { if !arg.CanInterface() { return @@ -136,7 +142,7 @@ func guessContentType(arg reflect.Value) { messages.Info("cannot compute content-type") return } - body, err := io.ReadAll(io.LimitReader(seeker, 200)) + body, err := io.ReadAll(io.LimitReader(seeker, detectionBufferSize)) if err != nil { _, _ = seeker.Seek(0, io.SeekStart) // in case something was read... messages.Info("cannot compute content-type: %v", err) @@ -147,8 +153,9 @@ func guessContentType(arg reflect.Value) { messages.ExitErr(fmt.Errorf("cannot compute content-type: %w", err)) return } + mimetype.SetLimit(detectionBufferSize) mime := mimetype.Detect(body) - messages.Info("detected mime-type: %s", mime.String()) + messages.Info("Detected mime-type: %s", mime.String()) po.ContentType = new(mime.String()) } } diff --git a/docs/reference/octl_storage.md b/docs/reference/octl_storage.md index aa9bc2cb..9471fff9 100644 --- a/docs/reference/octl_storage.md +++ b/docs/reference/octl_storage.md @@ -5,7 +5,8 @@ OUTSCALE Object Storage (OOS) management ### Options ``` - -h, --help help for storage + -h, --help help for storage + --no-auto-content-type Disable automatic content-type detection ``` ### Options inherited from parent commands diff --git a/docs/reference/octl_storage_api.md b/docs/reference/octl_storage_api.md index 33ff3d6d..4c18df95 100644 --- a/docs/reference/octl_storage_api.md +++ b/docs/reference/octl_storage_api.md @@ -19,6 +19,7 @@ storage api calls --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_api_AbortMultipartUpload.md b/docs/reference/octl_storage_api_AbortMultipartUpload.md index fcc10e8a..6cd379ee 100644 --- a/docs/reference/octl_storage_api_AbortMultipartUpload.md +++ b/docs/reference/octl_storage_api_AbortMultipartUpload.md @@ -29,6 +29,7 @@ octl storage api AbortMultipartUpload [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_api_CompleteMultipartUpload.md b/docs/reference/octl_storage_api_CompleteMultipartUpload.md index 6356cd7c..1464b860 100644 --- a/docs/reference/octl_storage_api_CompleteMultipartUpload.md +++ b/docs/reference/octl_storage_api_CompleteMultipartUpload.md @@ -43,6 +43,7 @@ octl storage api CompleteMultipartUpload [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_api_CopyObject.md b/docs/reference/octl_storage_api_CopyObject.md index 3aadeb2c..31a1d0b5 100644 --- a/docs/reference/octl_storage_api_CopyObject.md +++ b/docs/reference/octl_storage_api_CopyObject.md @@ -64,6 +64,7 @@ octl storage api CopyObject [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_api_CreateBucket.md b/docs/reference/octl_storage_api_CreateBucket.md index ab5fd76c..2c9c242e 100644 --- a/docs/reference/octl_storage_api_CreateBucket.md +++ b/docs/reference/octl_storage_api_CreateBucket.md @@ -37,6 +37,7 @@ octl storage api CreateBucket [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_api_CreateMultipartUpload.md b/docs/reference/octl_storage_api_CreateMultipartUpload.md index 13460b93..7c118f65 100644 --- a/docs/reference/octl_storage_api_CreateMultipartUpload.md +++ b/docs/reference/octl_storage_api_CreateMultipartUpload.md @@ -53,6 +53,7 @@ octl storage api CreateMultipartUpload [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_api_DeleteBucket.md b/docs/reference/octl_storage_api_DeleteBucket.md index b44d0790..42d4f851 100644 --- a/docs/reference/octl_storage_api_DeleteBucket.md +++ b/docs/reference/octl_storage_api_DeleteBucket.md @@ -25,6 +25,7 @@ octl storage api DeleteBucket [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_api_DeleteBucketCors.md b/docs/reference/octl_storage_api_DeleteBucketCors.md index 539cae58..eb41028d 100644 --- a/docs/reference/octl_storage_api_DeleteBucketCors.md +++ b/docs/reference/octl_storage_api_DeleteBucketCors.md @@ -25,6 +25,7 @@ octl storage api DeleteBucketCors [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_api_DeleteBucketEncryption.md b/docs/reference/octl_storage_api_DeleteBucketEncryption.md index be028587..61290267 100644 --- a/docs/reference/octl_storage_api_DeleteBucketEncryption.md +++ b/docs/reference/octl_storage_api_DeleteBucketEncryption.md @@ -25,6 +25,7 @@ octl storage api DeleteBucketEncryption [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_api_DeleteBucketLifecycle.md b/docs/reference/octl_storage_api_DeleteBucketLifecycle.md index 6cdce77c..3f33a7b4 100644 --- a/docs/reference/octl_storage_api_DeleteBucketLifecycle.md +++ b/docs/reference/octl_storage_api_DeleteBucketLifecycle.md @@ -25,6 +25,7 @@ octl storage api DeleteBucketLifecycle [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_api_DeleteBucketPolicy.md b/docs/reference/octl_storage_api_DeleteBucketPolicy.md index 0bff66cf..0303ab85 100644 --- a/docs/reference/octl_storage_api_DeleteBucketPolicy.md +++ b/docs/reference/octl_storage_api_DeleteBucketPolicy.md @@ -25,6 +25,7 @@ octl storage api DeleteBucketPolicy [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_api_DeleteBucketWebsite.md b/docs/reference/octl_storage_api_DeleteBucketWebsite.md index 7202846d..49c37134 100644 --- a/docs/reference/octl_storage_api_DeleteBucketWebsite.md +++ b/docs/reference/octl_storage_api_DeleteBucketWebsite.md @@ -25,6 +25,7 @@ octl storage api DeleteBucketWebsite [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_api_DeleteObject.md b/docs/reference/octl_storage_api_DeleteObject.md index 5a72baf0..5b602027 100644 --- a/docs/reference/octl_storage_api_DeleteObject.md +++ b/docs/reference/octl_storage_api_DeleteObject.md @@ -33,6 +33,7 @@ octl storage api DeleteObject [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_api_DeleteObjectTagging.md b/docs/reference/octl_storage_api_DeleteObjectTagging.md index 1805ef08..07595062 100644 --- a/docs/reference/octl_storage_api_DeleteObjectTagging.md +++ b/docs/reference/octl_storage_api_DeleteObjectTagging.md @@ -27,6 +27,7 @@ octl storage api DeleteObjectTagging [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_api_GetBucketAcl.md b/docs/reference/octl_storage_api_GetBucketAcl.md index a1cd1662..212aa81d 100644 --- a/docs/reference/octl_storage_api_GetBucketAcl.md +++ b/docs/reference/octl_storage_api_GetBucketAcl.md @@ -25,6 +25,7 @@ octl storage api GetBucketAcl [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_api_GetBucketCors.md b/docs/reference/octl_storage_api_GetBucketCors.md index 2c32cb83..04dd6f27 100644 --- a/docs/reference/octl_storage_api_GetBucketCors.md +++ b/docs/reference/octl_storage_api_GetBucketCors.md @@ -25,6 +25,7 @@ octl storage api GetBucketCors [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_api_GetBucketEncryption.md b/docs/reference/octl_storage_api_GetBucketEncryption.md index dfe7e3cc..50059ffd 100644 --- a/docs/reference/octl_storage_api_GetBucketEncryption.md +++ b/docs/reference/octl_storage_api_GetBucketEncryption.md @@ -25,6 +25,7 @@ octl storage api GetBucketEncryption [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_api_GetBucketLifecycleConfiguration.md b/docs/reference/octl_storage_api_GetBucketLifecycleConfiguration.md index 21dd8e14..5fc05840 100644 --- a/docs/reference/octl_storage_api_GetBucketLifecycleConfiguration.md +++ b/docs/reference/octl_storage_api_GetBucketLifecycleConfiguration.md @@ -25,6 +25,7 @@ octl storage api GetBucketLifecycleConfiguration [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_api_GetBucketLocation.md b/docs/reference/octl_storage_api_GetBucketLocation.md index 9aa4b20a..1e94909d 100644 --- a/docs/reference/octl_storage_api_GetBucketLocation.md +++ b/docs/reference/octl_storage_api_GetBucketLocation.md @@ -25,6 +25,7 @@ octl storage api GetBucketLocation [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_api_GetBucketPolicy.md b/docs/reference/octl_storage_api_GetBucketPolicy.md index 70efdc2f..9f5d5b2a 100644 --- a/docs/reference/octl_storage_api_GetBucketPolicy.md +++ b/docs/reference/octl_storage_api_GetBucketPolicy.md @@ -25,6 +25,7 @@ octl storage api GetBucketPolicy [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_api_GetBucketVersioning.md b/docs/reference/octl_storage_api_GetBucketVersioning.md index 0648cc75..63dde7ca 100644 --- a/docs/reference/octl_storage_api_GetBucketVersioning.md +++ b/docs/reference/octl_storage_api_GetBucketVersioning.md @@ -25,6 +25,7 @@ octl storage api GetBucketVersioning [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_api_GetBucketWebsite.md b/docs/reference/octl_storage_api_GetBucketWebsite.md index d76c750c..e9273fdb 100644 --- a/docs/reference/octl_storage_api_GetBucketWebsite.md +++ b/docs/reference/octl_storage_api_GetBucketWebsite.md @@ -25,6 +25,7 @@ octl storage api GetBucketWebsite [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_api_GetObject.md b/docs/reference/octl_storage_api_GetObject.md index 3348a796..9845e303 100644 --- a/docs/reference/octl_storage_api_GetObject.md +++ b/docs/reference/octl_storage_api_GetObject.md @@ -44,6 +44,7 @@ octl storage api GetObject [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_api_GetObjectAcl.md b/docs/reference/octl_storage_api_GetObjectAcl.md index 29c340a6..fb546bfd 100644 --- a/docs/reference/octl_storage_api_GetObjectAcl.md +++ b/docs/reference/octl_storage_api_GetObjectAcl.md @@ -28,6 +28,7 @@ octl storage api GetObjectAcl [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_api_GetObjectLockConfiguration.md b/docs/reference/octl_storage_api_GetObjectLockConfiguration.md index 9c4ba483..89ab5608 100644 --- a/docs/reference/octl_storage_api_GetObjectLockConfiguration.md +++ b/docs/reference/octl_storage_api_GetObjectLockConfiguration.md @@ -25,6 +25,7 @@ octl storage api GetObjectLockConfiguration [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_api_GetObjectRetention.md b/docs/reference/octl_storage_api_GetObjectRetention.md index 8eb26c6b..4cf3f013 100644 --- a/docs/reference/octl_storage_api_GetObjectRetention.md +++ b/docs/reference/octl_storage_api_GetObjectRetention.md @@ -28,6 +28,7 @@ octl storage api GetObjectRetention [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_api_GetObjectTagging.md b/docs/reference/octl_storage_api_GetObjectTagging.md index 7af1fd7b..13edceee 100644 --- a/docs/reference/octl_storage_api_GetObjectTagging.md +++ b/docs/reference/octl_storage_api_GetObjectTagging.md @@ -28,6 +28,7 @@ octl storage api GetObjectTagging [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_api_HeadBucket.md b/docs/reference/octl_storage_api_HeadBucket.md index 56b7a1a4..d3efacd3 100644 --- a/docs/reference/octl_storage_api_HeadBucket.md +++ b/docs/reference/octl_storage_api_HeadBucket.md @@ -25,6 +25,7 @@ octl storage api HeadBucket [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_api_HeadObject.md b/docs/reference/octl_storage_api_HeadObject.md index 6ff8d59c..1272bee8 100644 --- a/docs/reference/octl_storage_api_HeadObject.md +++ b/docs/reference/octl_storage_api_HeadObject.md @@ -44,6 +44,7 @@ octl storage api HeadObject [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_api_ListBuckets.md b/docs/reference/octl_storage_api_ListBuckets.md index 43c75479..0df941d3 100644 --- a/docs/reference/octl_storage_api_ListBuckets.md +++ b/docs/reference/octl_storage_api_ListBuckets.md @@ -27,6 +27,7 @@ octl storage api ListBuckets [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_api_ListMultipartUploads.md b/docs/reference/octl_storage_api_ListMultipartUploads.md index 4106891c..c0e12edb 100644 --- a/docs/reference/octl_storage_api_ListMultipartUploads.md +++ b/docs/reference/octl_storage_api_ListMultipartUploads.md @@ -32,6 +32,7 @@ octl storage api ListMultipartUploads [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_api_ListObjectVersions.md b/docs/reference/octl_storage_api_ListObjectVersions.md index ae2af847..fee85238 100644 --- a/docs/reference/octl_storage_api_ListObjectVersions.md +++ b/docs/reference/octl_storage_api_ListObjectVersions.md @@ -33,6 +33,7 @@ octl storage api ListObjectVersions [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_api_ListObjectsV2.md b/docs/reference/octl_storage_api_ListObjectsV2.md index 6f7f14bd..e2d938bc 100644 --- a/docs/reference/octl_storage_api_ListObjectsV2.md +++ b/docs/reference/octl_storage_api_ListObjectsV2.md @@ -34,6 +34,7 @@ octl storage api ListObjectsV2 [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_api_ListParts.md b/docs/reference/octl_storage_api_ListParts.md index 33ad29bd..1e596961 100644 --- a/docs/reference/octl_storage_api_ListParts.md +++ b/docs/reference/octl_storage_api_ListParts.md @@ -33,6 +33,7 @@ octl storage api ListParts [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_api_PutBucketAcl.md b/docs/reference/octl_storage_api_PutBucketAcl.md index 430b88b6..2ade55ab 100644 --- a/docs/reference/octl_storage_api_PutBucketAcl.md +++ b/docs/reference/octl_storage_api_PutBucketAcl.md @@ -41,6 +41,7 @@ octl storage api PutBucketAcl [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_api_PutBucketCors.md b/docs/reference/octl_storage_api_PutBucketCors.md index e691021b..742b38a5 100644 --- a/docs/reference/octl_storage_api_PutBucketCors.md +++ b/docs/reference/octl_storage_api_PutBucketCors.md @@ -33,6 +33,7 @@ octl storage api PutBucketCors [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_api_PutBucketEncryption.md b/docs/reference/octl_storage_api_PutBucketEncryption.md index 51778487..da6b8afa 100644 --- a/docs/reference/octl_storage_api_PutBucketEncryption.md +++ b/docs/reference/octl_storage_api_PutBucketEncryption.md @@ -30,6 +30,7 @@ octl storage api PutBucketEncryption [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_api_PutBucketLifecycleConfiguration.md b/docs/reference/octl_storage_api_PutBucketLifecycleConfiguration.md index a04df8cb..8eae2822 100644 --- a/docs/reference/octl_storage_api_PutBucketLifecycleConfiguration.md +++ b/docs/reference/octl_storage_api_PutBucketLifecycleConfiguration.md @@ -52,6 +52,7 @@ octl storage api PutBucketLifecycleConfiguration [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_api_PutBucketPolicy.md b/docs/reference/octl_storage_api_PutBucketPolicy.md index 14c6e5a2..2c5ee5e0 100644 --- a/docs/reference/octl_storage_api_PutBucketPolicy.md +++ b/docs/reference/octl_storage_api_PutBucketPolicy.md @@ -29,6 +29,7 @@ octl storage api PutBucketPolicy [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_api_PutBucketVersioning.md b/docs/reference/octl_storage_api_PutBucketVersioning.md index 97fa449e..174ee81e 100644 --- a/docs/reference/octl_storage_api_PutBucketVersioning.md +++ b/docs/reference/octl_storage_api_PutBucketVersioning.md @@ -30,6 +30,7 @@ octl storage api PutBucketVersioning [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_api_PutBucketWebsite.md b/docs/reference/octl_storage_api_PutBucketWebsite.md index 44374ddc..a0f85e1a 100644 --- a/docs/reference/octl_storage_api_PutBucketWebsite.md +++ b/docs/reference/octl_storage_api_PutBucketWebsite.md @@ -38,6 +38,7 @@ octl storage api PutBucketWebsite [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_api_PutObject.md b/docs/reference/octl_storage_api_PutObject.md index 1d20532b..cf361750 100644 --- a/docs/reference/octl_storage_api_PutObject.md +++ b/docs/reference/octl_storage_api_PutObject.md @@ -63,6 +63,7 @@ octl storage api PutObject [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_api_PutObjectAcl.md b/docs/reference/octl_storage_api_PutObjectAcl.md index 9fbcc721..a3509cdc 100644 --- a/docs/reference/octl_storage_api_PutObjectAcl.md +++ b/docs/reference/octl_storage_api_PutObjectAcl.md @@ -44,6 +44,7 @@ octl storage api PutObjectAcl [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_api_PutObjectLockConfiguration.md b/docs/reference/octl_storage_api_PutObjectLockConfiguration.md index 70bfe1d5..fc3c99da 100644 --- a/docs/reference/octl_storage_api_PutObjectLockConfiguration.md +++ b/docs/reference/octl_storage_api_PutObjectLockConfiguration.md @@ -33,6 +33,7 @@ octl storage api PutObjectLockConfiguration [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_api_PutObjectRetention.md b/docs/reference/octl_storage_api_PutObjectRetention.md index 2dfef34a..21a15b22 100644 --- a/docs/reference/octl_storage_api_PutObjectRetention.md +++ b/docs/reference/octl_storage_api_PutObjectRetention.md @@ -33,6 +33,7 @@ octl storage api PutObjectRetention [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_api_PutObjectTagging.md b/docs/reference/octl_storage_api_PutObjectTagging.md index 1522b747..8e44df79 100644 --- a/docs/reference/octl_storage_api_PutObjectTagging.md +++ b/docs/reference/octl_storage_api_PutObjectTagging.md @@ -32,6 +32,7 @@ octl storage api PutObjectTagging [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_api_UploadPart.md b/docs/reference/octl_storage_api_UploadPart.md index 77a5595f..cb33ad4e 100644 --- a/docs/reference/octl_storage_api_UploadPart.md +++ b/docs/reference/octl_storage_api_UploadPart.md @@ -40,6 +40,7 @@ octl storage api UploadPart [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_api_UploadPartCopy.md b/docs/reference/octl_storage_api_UploadPartCopy.md index 9ddfad13..862383d1 100644 --- a/docs/reference/octl_storage_api_UploadPartCopy.md +++ b/docs/reference/octl_storage_api_UploadPartCopy.md @@ -42,6 +42,7 @@ octl storage api UploadPartCopy [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_bucket.md b/docs/reference/octl_storage_bucket.md index 743deb4d..7930ab23 100644 --- a/docs/reference/octl_storage_bucket.md +++ b/docs/reference/octl_storage_bucket.md @@ -19,6 +19,7 @@ bucket commands --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_bucket_acl.md b/docs/reference/octl_storage_bucket_acl.md index a46116b8..08846ed2 100644 --- a/docs/reference/octl_storage_bucket_acl.md +++ b/docs/reference/octl_storage_bucket_acl.md @@ -19,6 +19,7 @@ acl commands --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_bucket_acl_configure.md b/docs/reference/octl_storage_bucket_acl_configure.md index 998f7b02..4a950081 100644 --- a/docs/reference/octl_storage_bucket_acl_configure.md +++ b/docs/reference/octl_storage_bucket_acl_configure.md @@ -36,6 +36,7 @@ octl storage bucket acl configure bucket [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_bucket_acl_describe.md b/docs/reference/octl_storage_bucket_acl_describe.md index d0db0661..c2935421 100644 --- a/docs/reference/octl_storage_bucket_acl_describe.md +++ b/docs/reference/octl_storage_bucket_acl_describe.md @@ -29,6 +29,7 @@ octl storage bucket acl describe bucket [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_bucket_cors.md b/docs/reference/octl_storage_bucket_cors.md index 0a11165a..d61a9be4 100644 --- a/docs/reference/octl_storage_bucket_cors.md +++ b/docs/reference/octl_storage_bucket_cors.md @@ -19,6 +19,7 @@ cors commands --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_bucket_cors_configure.md b/docs/reference/octl_storage_bucket_cors_configure.md index 75c09866..6a83516b 100644 --- a/docs/reference/octl_storage_bucket_cors_configure.md +++ b/docs/reference/octl_storage_bucket_cors_configure.md @@ -31,6 +31,7 @@ octl storage bucket cors configure bucket [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_bucket_cors_describe.md b/docs/reference/octl_storage_bucket_cors_describe.md index 7c0dcc1b..45ee4953 100644 --- a/docs/reference/octl_storage_bucket_cors_describe.md +++ b/docs/reference/octl_storage_bucket_cors_describe.md @@ -29,6 +29,7 @@ octl storage bucket cors describe bucket [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_bucket_cors_disable.md b/docs/reference/octl_storage_bucket_cors_disable.md index f5eb7fca..7a126376 100644 --- a/docs/reference/octl_storage_bucket_cors_disable.md +++ b/docs/reference/octl_storage_bucket_cors_disable.md @@ -29,6 +29,7 @@ octl storage bucket cors disable bucket [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_bucket_create.md b/docs/reference/octl_storage_bucket_create.md index a4a70bbc..73281113 100644 --- a/docs/reference/octl_storage_bucket_create.md +++ b/docs/reference/octl_storage_bucket_create.md @@ -38,6 +38,7 @@ octl storage bucket create [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_bucket_delete.md b/docs/reference/octl_storage_bucket_delete.md index f01b6368..e6cb1891 100644 --- a/docs/reference/octl_storage_bucket_delete.md +++ b/docs/reference/octl_storage_bucket_delete.md @@ -30,6 +30,7 @@ octl storage bucket delete bucket [bucket]... [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_bucket_describe.md b/docs/reference/octl_storage_bucket_describe.md index 8f44a13e..2a6dbda0 100644 --- a/docs/reference/octl_storage_bucket_describe.md +++ b/docs/reference/octl_storage_bucket_describe.md @@ -29,6 +29,7 @@ octl storage bucket describe bucket [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_bucket_encryption.md b/docs/reference/octl_storage_bucket_encryption.md index 7e83a874..a46e8daf 100644 --- a/docs/reference/octl_storage_bucket_encryption.md +++ b/docs/reference/octl_storage_bucket_encryption.md @@ -19,6 +19,7 @@ encryption commands --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_bucket_encryption_describe.md b/docs/reference/octl_storage_bucket_encryption_describe.md index 737c7111..080ec989 100644 --- a/docs/reference/octl_storage_bucket_encryption_describe.md +++ b/docs/reference/octl_storage_bucket_encryption_describe.md @@ -29,6 +29,7 @@ octl storage bucket encryption describe bucket [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_bucket_encryption_disable.md b/docs/reference/octl_storage_bucket_encryption_disable.md index 4e125a74..cad7da28 100644 --- a/docs/reference/octl_storage_bucket_encryption_disable.md +++ b/docs/reference/octl_storage_bucket_encryption_disable.md @@ -29,6 +29,7 @@ octl storage bucket encryption disable bucket [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_bucket_encryption_enable.md b/docs/reference/octl_storage_bucket_encryption_enable.md index 86ad4a64..b3f35f6d 100644 --- a/docs/reference/octl_storage_bucket_encryption_enable.md +++ b/docs/reference/octl_storage_bucket_encryption_enable.md @@ -29,6 +29,7 @@ octl storage bucket encryption enable bucket [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_bucket_lifecycle.md b/docs/reference/octl_storage_bucket_lifecycle.md index 86e3f4af..779daa8a 100644 --- a/docs/reference/octl_storage_bucket_lifecycle.md +++ b/docs/reference/octl_storage_bucket_lifecycle.md @@ -19,6 +19,7 @@ lifecycle commands --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_bucket_lifecycle_configure.md b/docs/reference/octl_storage_bucket_lifecycle_configure.md index e34dd5db..ce4dc807 100644 --- a/docs/reference/octl_storage_bucket_lifecycle_configure.md +++ b/docs/reference/octl_storage_bucket_lifecycle_configure.md @@ -31,6 +31,7 @@ octl storage bucket lifecycle configure bucket [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_bucket_lifecycle_describe.md b/docs/reference/octl_storage_bucket_lifecycle_describe.md index bb13090d..4337a6d6 100644 --- a/docs/reference/octl_storage_bucket_lifecycle_describe.md +++ b/docs/reference/octl_storage_bucket_lifecycle_describe.md @@ -29,6 +29,7 @@ octl storage bucket lifecycle describe bucket [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_bucket_lifecycle_disable.md b/docs/reference/octl_storage_bucket_lifecycle_disable.md index 0f20eeef..52fa1ed0 100644 --- a/docs/reference/octl_storage_bucket_lifecycle_disable.md +++ b/docs/reference/octl_storage_bucket_lifecycle_disable.md @@ -29,6 +29,7 @@ octl storage bucket lifecycle disable bucket [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_bucket_list.md b/docs/reference/octl_storage_bucket_list.md index ab780014..312705a9 100644 --- a/docs/reference/octl_storage_bucket_list.md +++ b/docs/reference/octl_storage_bucket_list.md @@ -31,6 +31,7 @@ octl storage bucket list [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_bucket_objectlock.md b/docs/reference/octl_storage_bucket_objectlock.md index 93a3b025..a2bf1789 100644 --- a/docs/reference/octl_storage_bucket_objectlock.md +++ b/docs/reference/octl_storage_bucket_objectlock.md @@ -19,6 +19,7 @@ objectlock commands --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_bucket_objectlock_configure.md b/docs/reference/octl_storage_bucket_objectlock_configure.md index 52bafdf6..f7da1744 100644 --- a/docs/reference/octl_storage_bucket_objectlock_configure.md +++ b/docs/reference/octl_storage_bucket_objectlock_configure.md @@ -31,6 +31,7 @@ octl storage bucket objectlock configure bucket [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_bucket_objectlock_describe.md b/docs/reference/octl_storage_bucket_objectlock_describe.md index 7a307822..13c4a2d3 100644 --- a/docs/reference/octl_storage_bucket_objectlock_describe.md +++ b/docs/reference/octl_storage_bucket_objectlock_describe.md @@ -29,6 +29,7 @@ octl storage bucket objectlock describe bucket [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_bucket_policy.md b/docs/reference/octl_storage_bucket_policy.md index 24e085b2..6328a174 100644 --- a/docs/reference/octl_storage_bucket_policy.md +++ b/docs/reference/octl_storage_bucket_policy.md @@ -19,6 +19,7 @@ policy commands --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_bucket_policy_configure.md b/docs/reference/octl_storage_bucket_policy_configure.md index 9eb1ef41..f06802e9 100644 --- a/docs/reference/octl_storage_bucket_policy_configure.md +++ b/docs/reference/octl_storage_bucket_policy_configure.md @@ -32,6 +32,7 @@ octl storage bucket policy configure bucket [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_bucket_policy_describe.md b/docs/reference/octl_storage_bucket_policy_describe.md index c7816c20..e1efc022 100644 --- a/docs/reference/octl_storage_bucket_policy_describe.md +++ b/docs/reference/octl_storage_bucket_policy_describe.md @@ -29,6 +29,7 @@ octl storage bucket policy describe bucket [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_bucket_policy_disable.md b/docs/reference/octl_storage_bucket_policy_disable.md index 8abed4d9..6aa0cc89 100644 --- a/docs/reference/octl_storage_bucket_policy_disable.md +++ b/docs/reference/octl_storage_bucket_policy_disable.md @@ -29,6 +29,7 @@ octl storage bucket policy disable bucket [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_bucket_versioning.md b/docs/reference/octl_storage_bucket_versioning.md index e9f24de1..ef557381 100644 --- a/docs/reference/octl_storage_bucket_versioning.md +++ b/docs/reference/octl_storage_bucket_versioning.md @@ -19,6 +19,7 @@ versioning commands --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_bucket_versioning_describe.md b/docs/reference/octl_storage_bucket_versioning_describe.md index 4540b1d0..5cd500a1 100644 --- a/docs/reference/octl_storage_bucket_versioning_describe.md +++ b/docs/reference/octl_storage_bucket_versioning_describe.md @@ -29,6 +29,7 @@ octl storage bucket versioning describe bucket [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_bucket_versioning_disable.md b/docs/reference/octl_storage_bucket_versioning_disable.md index 23d434ce..8d82037d 100644 --- a/docs/reference/octl_storage_bucket_versioning_disable.md +++ b/docs/reference/octl_storage_bucket_versioning_disable.md @@ -29,6 +29,7 @@ octl storage bucket versioning disable bucket [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_bucket_versioning_enable.md b/docs/reference/octl_storage_bucket_versioning_enable.md index 139389b8..d51fb639 100644 --- a/docs/reference/octl_storage_bucket_versioning_enable.md +++ b/docs/reference/octl_storage_bucket_versioning_enable.md @@ -29,6 +29,7 @@ octl storage bucket versioning enable bucket [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_bucket_website.md b/docs/reference/octl_storage_bucket_website.md index 0fcaaf2d..0555f116 100644 --- a/docs/reference/octl_storage_bucket_website.md +++ b/docs/reference/octl_storage_bucket_website.md @@ -19,6 +19,7 @@ website commands --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_bucket_website_configure.md b/docs/reference/octl_storage_bucket_website_configure.md index b71bdb13..8759b651 100644 --- a/docs/reference/octl_storage_bucket_website_configure.md +++ b/docs/reference/octl_storage_bucket_website_configure.md @@ -31,6 +31,7 @@ octl storage bucket website configure bucket [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_bucket_website_describe.md b/docs/reference/octl_storage_bucket_website_describe.md index 7672374a..2722858e 100644 --- a/docs/reference/octl_storage_bucket_website_describe.md +++ b/docs/reference/octl_storage_bucket_website_describe.md @@ -29,6 +29,7 @@ octl storage bucket website describe bucket [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_bucket_website_disable.md b/docs/reference/octl_storage_bucket_website_disable.md index 6bd1954c..c83355cf 100644 --- a/docs/reference/octl_storage_bucket_website_disable.md +++ b/docs/reference/octl_storage_bucket_website_disable.md @@ -29,6 +29,7 @@ octl storage bucket website disable bucket [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_multipartupload.md b/docs/reference/octl_storage_multipartupload.md index 061f52d1..8c98a2a0 100644 --- a/docs/reference/octl_storage_multipartupload.md +++ b/docs/reference/octl_storage_multipartupload.md @@ -19,6 +19,7 @@ multipartupload commands --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_multipartupload_create.md b/docs/reference/octl_storage_multipartupload_create.md index c92abec8..f002ba2e 100644 --- a/docs/reference/octl_storage_multipartupload_create.md +++ b/docs/reference/octl_storage_multipartupload_create.md @@ -51,6 +51,7 @@ octl storage multipartupload create [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_multipartupload_list.md b/docs/reference/octl_storage_multipartupload_list.md index 4919eaf7..7f6ed056 100644 --- a/docs/reference/octl_storage_multipartupload_list.md +++ b/docs/reference/octl_storage_multipartupload_list.md @@ -37,6 +37,7 @@ octl storage multipartupload list [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_object.md b/docs/reference/octl_storage_object.md index 1fd93505..925385d8 100644 --- a/docs/reference/octl_storage_object.md +++ b/docs/reference/octl_storage_object.md @@ -19,6 +19,7 @@ object commands --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_object_acl.md b/docs/reference/octl_storage_object_acl.md index 549798f6..e47675f8 100644 --- a/docs/reference/octl_storage_object_acl.md +++ b/docs/reference/octl_storage_object_acl.md @@ -19,6 +19,7 @@ acl commands --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_object_acl_configure.md b/docs/reference/octl_storage_object_acl_configure.md index 462ef0ca..c78ae6c6 100644 --- a/docs/reference/octl_storage_object_acl_configure.md +++ b/docs/reference/octl_storage_object_acl_configure.md @@ -32,6 +32,7 @@ octl storage object acl configure key [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_object_acl_describe.md b/docs/reference/octl_storage_object_acl_describe.md index 2f6b03e3..979777a6 100644 --- a/docs/reference/octl_storage_object_acl_describe.md +++ b/docs/reference/octl_storage_object_acl_describe.md @@ -30,6 +30,7 @@ octl storage object acl describe key [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_object_copy.md b/docs/reference/octl_storage_object_copy.md index 56419779..d697bbed 100644 --- a/docs/reference/octl_storage_object_copy.md +++ b/docs/reference/octl_storage_object_copy.md @@ -46,6 +46,7 @@ octl storage object copy bucket_src/key_src key_dst [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_object_delete.md b/docs/reference/octl_storage_object_delete.md index 8b0d7be6..a7c08330 100644 --- a/docs/reference/octl_storage_object_delete.md +++ b/docs/reference/octl_storage_object_delete.md @@ -37,6 +37,7 @@ octl storage object delete key [key]... [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_object_describe.md b/docs/reference/octl_storage_object_describe.md index 64f22c9d..810cf911 100644 --- a/docs/reference/octl_storage_object_describe.md +++ b/docs/reference/octl_storage_object_describe.md @@ -30,6 +30,7 @@ octl storage object describe key [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_object_download.md b/docs/reference/octl_storage_object_download.md index 0466291a..893ef816 100644 --- a/docs/reference/octl_storage_object_download.md +++ b/docs/reference/octl_storage_object_download.md @@ -33,6 +33,7 @@ octl storage object download key [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_object_list.md b/docs/reference/octl_storage_object_list.md index 785c413c..add55fd6 100644 --- a/docs/reference/octl_storage_object_list.md +++ b/docs/reference/octl_storage_object_list.md @@ -37,6 +37,7 @@ octl storage object list [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_object_presign.md b/docs/reference/octl_storage_object_presign.md index 12a44ae8..4a699ffe 100644 --- a/docs/reference/octl_storage_object_presign.md +++ b/docs/reference/octl_storage_object_presign.md @@ -26,6 +26,7 @@ octl storage object presign key [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_object_put.md b/docs/reference/octl_storage_object_put.md index bcc04c9f..5fa190d1 100644 --- a/docs/reference/octl_storage_object_put.md +++ b/docs/reference/octl_storage_object_put.md @@ -55,6 +55,7 @@ octl storage object put key [key]... [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_object_retention.md b/docs/reference/octl_storage_object_retention.md index 155b5099..6dbf4c8b 100644 --- a/docs/reference/octl_storage_object_retention.md +++ b/docs/reference/octl_storage_object_retention.md @@ -19,6 +19,7 @@ retention commands --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_object_retention_configure.md b/docs/reference/octl_storage_object_retention_configure.md index b1cf3082..af450499 100644 --- a/docs/reference/octl_storage_object_retention_configure.md +++ b/docs/reference/octl_storage_object_retention_configure.md @@ -31,6 +31,7 @@ octl storage object retention configure key [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_object_retention_desc.md b/docs/reference/octl_storage_object_retention_desc.md index f024650a..297b9483 100644 --- a/docs/reference/octl_storage_object_retention_desc.md +++ b/docs/reference/octl_storage_object_retention_desc.md @@ -30,6 +30,7 @@ octl storage object retention desc key [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_object_tagging.md b/docs/reference/octl_storage_object_tagging.md index 8a3311a1..6a8203d6 100644 --- a/docs/reference/octl_storage_object_tagging.md +++ b/docs/reference/octl_storage_object_tagging.md @@ -19,6 +19,7 @@ tagging commands --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_object_tagging_configure.md b/docs/reference/octl_storage_object_tagging_configure.md index 8dc62304..a5fd3842 100644 --- a/docs/reference/octl_storage_object_tagging_configure.md +++ b/docs/reference/octl_storage_object_tagging_configure.md @@ -32,6 +32,7 @@ octl storage object tagging configure key [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_object_tagging_delete.md b/docs/reference/octl_storage_object_tagging_delete.md index 8ef3e253..10650bd7 100644 --- a/docs/reference/octl_storage_object_tagging_delete.md +++ b/docs/reference/octl_storage_object_tagging_delete.md @@ -30,6 +30,7 @@ octl storage object tagging delete key [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_object_tagging_describe.md b/docs/reference/octl_storage_object_tagging_describe.md index b9861ec2..8c83d848 100644 --- a/docs/reference/octl_storage_object_tagging_describe.md +++ b/docs/reference/octl_storage_object_tagging_describe.md @@ -30,6 +30,7 @@ octl storage object tagging describe key [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_object_versions.md b/docs/reference/octl_storage_object_versions.md index e748a57d..918e5257 100644 --- a/docs/reference/octl_storage_object_versions.md +++ b/docs/reference/octl_storage_object_versions.md @@ -30,6 +30,7 @@ octl storage object versions [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_part.md b/docs/reference/octl_storage_part.md index 0487d0c1..7bef4b8c 100644 --- a/docs/reference/octl_storage_part.md +++ b/docs/reference/octl_storage_part.md @@ -19,6 +19,7 @@ part commands --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/docs/reference/octl_storage_part_list.md b/docs/reference/octl_storage_part_list.md index e82e3682..7a3e4252 100644 --- a/docs/reference/octl_storage_part_list.md +++ b/docs/reference/octl_storage_part_list.md @@ -35,6 +35,7 @@ octl storage part list [flags] --interval duration interval between two watch/waitfor iterations (default 5s) --jq string jq filter --max-pages int maximum number of pages a command can fetch (default 20) + --no-auto-content-type Disable automatic content-type detection --no-upgrade do not check for new versions -O, --out-file string redirect output to file -o, --output string output format (raw, json, yaml, table, csv, none, base64, text) diff --git a/pkg/runner/hooks.go b/pkg/runner/hooks.go index a108a268..d3ce3db6 100644 --- a/pkg/runner/hooks.go +++ b/pkg/runner/hooks.go @@ -1,23 +1,13 @@ package runner -import "reflect" +import ( + "reflect" +) type Hook func(arg reflect.Value) -var registeredHooks map[string]Hook - -func init() { - registeredHooks = map[string]Hook{} -} - -func RegisterHook(name string, hook Hook) { - registeredHooks[name] = hook -} - -func applyHooks(arg reflect.Value, hooks []string) { - for _, name := range hooks { - if hook, ok := registeredHooks[name]; ok { - hook(arg) - } +func applyHooks(arg reflect.Value, hooks ...Hook) { + for _, hook := range hooks { + hook(arg) } } diff --git a/pkg/runner/run.go b/pkg/runner/run.go index 511fd57c..cc90e884 100644 --- a/pkg/runner/run.go +++ b/pkg/runner/run.go @@ -22,14 +22,14 @@ import ( "github.com/spf13/cobra" ) -func Run[Client any, Error error](cmd *cobra.Command, args []string, cl Client, cfg config.Config) error { +func Run[Client any, Error error](cmd *cobra.Command, args []string, cl Client, cfg config.Config, hooks ...Hook) error { if cmd.Flags().Lookup("waitfor").Changed { - return waitfor[Client, Error](cmd, args, cl, cfg) + return waitfor[Client, Error](cmd, args, cl, cfg, hooks...) } - return doRun[Client, Error](cmd, args, cl, cfg) + return doRun[Client, Error](cmd, args, cl, cfg, hooks...) } -func doRun[Client any, Error error](cmd *cobra.Command, args []string, cl Client, cfg config.Config) error { +func doRun[Client any, Error error](cmd *cobra.Command, args []string, cl Client, cfg config.Config, hooks ...Hook) error { clt := reflect.TypeFor[Client]() m, _ := clt.MethodByName(cmd.Name()) @@ -58,7 +58,7 @@ func doRun[Client any, Error error](cmd *cobra.Command, args []string, cl Client arg.Set(reflect.New(argType.Elem())) } if !injected { - err := ToStruct(cmd, arg, "") + err := ToStruct(cmd, arg, "", hooks...) switch { case err != nil: return err diff --git a/pkg/runner/struct.go b/pkg/runner/struct.go index 11783d0b..fb818f7b 100644 --- a/pkg/runner/struct.go +++ b/pkg/runner/struct.go @@ -19,7 +19,7 @@ import ( "github.com/spf13/pflag" ) -func ToStruct(cmd *cobra.Command, arg reflect.Value, prefix string) error { +func ToStruct(cmd *cobra.Command, arg reflect.Value, prefix string, hooks ...Hook) error { fs := cmd.Flags() var ( err error @@ -77,9 +77,7 @@ func ToStruct(cmd *cobra.Command, arg reflect.Value, prefix string) error { }) } // apply hooks - if hooks, _ := fs.GetStringSlice("hooks"); len(hooks) > 0 { - applyHooks(arg, hooks) - } + applyHooks(arg, hooks...) debug.Println(fmt.Sprintf("ToStruct result: %+v", reflect.Indirect(arg).Interface())) return err } diff --git a/pkg/runner/waitfor.go b/pkg/runner/waitfor.go index bc91b863..6b8750f4 100644 --- a/pkg/runner/waitfor.go +++ b/pkg/runner/waitfor.go @@ -15,7 +15,7 @@ import ( "github.com/spf13/cobra" ) -func waitfor[Client any, Error error](cmd *cobra.Command, args []string, cl Client, cfg config.Config) error { +func waitfor[Client any, Error error](cmd *cobra.Command, args []string, cl Client, cfg config.Config, hooks ...Hook) error { expr, _ := cmd.Flags().GetString("waitfor") // force JSON output @@ -39,7 +39,7 @@ func waitfor[Client any, Error error](cmd *cobra.Command, args []string, cl Clie } buf := &bytes.Buffer{} output.InjectOutput(buf) - err := doRun[Client, Error](cmd, args, cl, cfg) + err := doRun[Client, Error](cmd, args, cl, cfg, hooks...) if err != nil { return err }