Skip to content

Commit

Permalink
docs: add note to deprecated flags
Browse files Browse the repository at this point in the history
and regenerate docs

In the future these will be removed from the docs entirely but that
requires a patch to Cobra, for now we just add a deprecation note.

fixes #3104
  • Loading branch information
kevinbarbour authored and mmatczuk committed Apr 13, 2022
1 parent ce317c7 commit 9afdd3d
Show file tree
Hide file tree
Showing 11 changed files with 45 additions and 27 deletions.
14 changes: 7 additions & 7 deletions docs/source/sctool/partials/sctool_backup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ options:
- name: interval
shorthand: i
usage: |
--interval is deprecated, please use `--cron` instead
Time after which a successfully completed task would be run again, supported units are:
'd' - days
Expand All @@ -59,10 +60,10 @@ options:
The patterns match keyspaces and tables, separate the keyspace name from the table name with a dot e.g. 'keyspace,!keyspace.table_prefix_*'.
The following syntax for glob patterns is supported:
'*' - matches any number of any characters including none
'?' - matches any single character
'[abc]' - matches one character given in the bracket
'[a-z]' - matches one character from the range given in the bracket
* '*' - matches any number of any characters including none
* '?' - matches any single character
* '[abc]' - matches one character given in the bracket
* '[a-z]' - matches one character from the range given in the bracket
Patterns are evaluated from left to right.
If a pattern starts with '!' it unselects items that were selected by previous patterns i.e. 'a?,!aa' selects *ab* but not *aa*.
Expand Down Expand Up @@ -99,9 +100,7 @@ options:
usage: |
The `number of backups` to store, once this number is reached, the next backup which comes in from this destination will initiate a purge of the oldest backup.
- name: retention-days
usage: |
The number of days to retain a backup. All backups older than this will be purged.
Set to 0 for no limit (default 0)
default_value: "0"
- name: retry-wait
default_value: 10m
usage: |
Expand All @@ -121,6 +120,7 @@ options:
- name: start-date
shorthand: s
usage: |
--start-date is deprecated, please use `--cron` instead
The date can be expressed relatively to now or as a RFC3339 formatted string.
To run the task in 2 hours use 'now+2h', supported units are:
Expand Down
8 changes: 4 additions & 4 deletions docs/source/sctool/partials/sctool_backup_list.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ options:
The patterns match keyspaces and tables, separate the keyspace name from the table name with a dot e.g. 'keyspace,!keyspace.table_prefix_*'.
The following syntax for glob patterns is supported:
'*' - matches any number of any characters including none
'?' - matches any single character
'[abc]' - matches one character given in the bracket
'[a-z]' - matches one character from the range given in the bracket
* '*' - matches any number of any characters including none
* '?' - matches any single character
* '[abc]' - matches one character given in the bracket
* '[a-z]' - matches one character from the range given in the bracket
Patterns are evaluated from left to right.
If a pattern starts with '!' it unselects items that were selected by previous patterns i.e. 'a?,!aa' selects *ab* but not *aa*.
Expand Down
12 changes: 8 additions & 4 deletions docs/source/sctool/partials/sctool_backup_update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ options:
- name: interval
shorthand: i
usage: |
--interval is deprecated, please use `--cron` instead
Time after which a successfully completed task would be run again, supported units are:
'd' - days
Expand All @@ -60,10 +61,10 @@ options:
The patterns match keyspaces and tables, separate the keyspace name from the table name with a dot e.g. 'keyspace,!keyspace.table_prefix_*'.
The following syntax for glob patterns is supported:
'*' - matches any number of any characters including none
'?' - matches any single character
'[abc]' - matches one character given in the bracket
'[a-z]' - matches one character from the range given in the bracket
* '*' - matches any number of any characters including none
* '?' - matches any single character
* '[abc]' - matches one character given in the bracket
* '[a-z]' - matches one character from the range given in the bracket
Patterns are evaluated from left to right.
If a pattern starts with '!' it unselects items that were selected by previous patterns i.e. 'a?,!aa' selects *ab* but not *aa*.
Expand Down Expand Up @@ -99,6 +100,8 @@ options:
default_value: "7"
usage: |
The `number of backups` to store, once this number is reached, the next backup which comes in from this destination will initiate a purge of the oldest backup.
- name: retention-days
default_value: "0"
- name: retry-wait
default_value: 10m
usage: |
Expand All @@ -118,6 +121,7 @@ options:
- name: start-date
shorthand: s
usage: |
--start-date is deprecated, please use `--cron` instead
The date can be expressed relatively to now or as a RFC3339 formatted string.
To run the task in 2 hours use 'now+2h', supported units are:
Expand Down
2 changes: 2 additions & 0 deletions docs/source/sctool/partials/sctool_backup_validate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ options:
- name: interval
shorthand: i
usage: |
--interval is deprecated, please use `--cron` instead
Time after which a successfully completed task would be run again, supported units are:
'd' - days
Expand Down Expand Up @@ -69,6 +70,7 @@ options:
- name: start-date
shorthand: s
usage: |
--start-date is deprecated, please use `--cron` instead
The date can be expressed relatively to now or as a RFC3339 formatted string.
To run the task in 2 hours use 'now+2h', supported units are:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ options:
- name: interval
shorthand: i
usage: |
--interval is deprecated, please use `--cron` instead
Time after which a successfully completed task would be run again, supported units are:
'd' - days
Expand Down Expand Up @@ -66,6 +67,7 @@ options:
- name: start-date
shorthand: s
usage: |
--start-date is deprecated, please use `--cron` instead
The date can be expressed relatively to now or as a RFC3339 formatted string.
To run the task in 2 hours use 'now+2h', supported units are:
Expand Down
8 changes: 4 additions & 4 deletions docs/source/sctool/partials/sctool_progress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ options:
The patterns match keyspaces and tables, separate the keyspace name from the table name with a dot e.g. 'keyspace,!keyspace.table_prefix_*'.
The following syntax for glob patterns is supported:
'*' - matches any number of any characters including none
'?' - matches any single character
'[abc]' - matches one character given in the bracket
'[a-z]' - matches one character from the range given in the bracket
* '*' - matches any number of any characters including none
* '?' - matches any single character
* '[abc]' - matches one character given in the bracket
* '[a-z]' - matches one character from the range given in the bracket
Patterns are evaluated from left to right.
If a pattern starts with '!' it unselects items that were selected by previous patterns i.e. 'a?,!aa' selects *ab* but not *aa*.
Expand Down
10 changes: 6 additions & 4 deletions docs/source/sctool/partials/sctool_repair.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ options:
- name: interval
shorthand: i
usage: |
--interval is deprecated, please use `--cron` instead
Time after which a successfully completed task would be run again, supported units are:
'd' - days
Expand All @@ -80,10 +81,10 @@ options:
The patterns match keyspaces and tables, separate the keyspace name from the table name with a dot e.g. 'keyspace,!keyspace.table_prefix_*'.
The following syntax for glob patterns is supported:
'*' - matches any number of any characters including none
'?' - matches any single character
'[abc]' - matches one character given in the bracket
'[a-z]' - matches one character from the range given in the bracket
* '*' - matches any number of any characters including none
* '?' - matches any single character
* '[abc]' - matches one character given in the bracket
* '[a-z]' - matches one character from the range given in the bracket
Patterns are evaluated from left to right.
If a pattern starts with '!' it unselects items that were selected by previous patterns i.e. 'a?,!aa' selects *ab* but not *aa*.
Expand Down Expand Up @@ -120,6 +121,7 @@ options:
- name: start-date
shorthand: s
usage: |
--start-date is deprecated, please use `--cron` instead
The date can be expressed relatively to now or as a RFC3339 formatted string.
To run the task in 2 hours use 'now+2h', supported units are:
Expand Down
10 changes: 6 additions & 4 deletions docs/source/sctool/partials/sctool_repair_update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ options:
- name: interval
shorthand: i
usage: |
--interval is deprecated, please use `--cron` instead
Time after which a successfully completed task would be run again, supported units are:
'd' - days
Expand All @@ -79,10 +80,10 @@ options:
The patterns match keyspaces and tables, separate the keyspace name from the table name with a dot e.g. 'keyspace,!keyspace.table_prefix_*'.
The following syntax for glob patterns is supported:
'*' - matches any number of any characters including none
'?' - matches any single character
'[abc]' - matches one character given in the bracket
'[a-z]' - matches one character from the range given in the bracket
* '*' - matches any number of any characters including none
* '?' - matches any single character
* '[abc]' - matches one character given in the bracket
* '[a-z]' - matches one character from the range given in the bracket
Patterns are evaluated from left to right.
If a pattern starts with '!' it unselects items that were selected by previous patterns i.e. 'a?,!aa' selects *ab* but not *aa*.
Expand Down Expand Up @@ -119,6 +120,7 @@ options:
- name: start-date
shorthand: s
usage: |
--start-date is deprecated, please use `--cron` instead
The date can be expressed relatively to now or as a RFC3339 formatted string.
To run the task in 2 hours use 'now+2h', supported units are:
Expand Down
2 changes: 2 additions & 0 deletions docs/source/sctool/partials/sctool_suspend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ options:
- name: interval
shorthand: i
usage: |
--interval is deprecated, please use `--cron` instead
Time after which a successfully completed task would be run again, supported units are:
'd' - days
Expand Down Expand Up @@ -63,6 +64,7 @@ options:
- name: start-date
shorthand: s
usage: |
--start-date is deprecated, please use `--cron` instead
The date can be expressed relatively to now or as a RFC3339 formatted string.
To run the task in 2 hours use 'now+2h', supported units are:
Expand Down
2 changes: 2 additions & 0 deletions docs/source/sctool/partials/sctool_suspend_update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ options:
- name: interval
shorthand: i
usage: |
--interval is deprecated, please use `--cron` instead
Time after which a successfully completed task would be run again, supported units are:
'd' - days
Expand Down Expand Up @@ -55,6 +56,7 @@ options:
- name: start-date
shorthand: s
usage: |
--start-date is deprecated, please use `--cron` instead
The date can be expressed relatively to now or as a RFC3339 formatted string.
To run the task in 2 hours use 'now+2h', supported units are:
Expand Down
2 changes: 2 additions & 0 deletions pkg/command/flag/task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ timezone: |
The default value is taken from this system, namely 'TZ' envvar or '/etc/localtime' file.
interval: |
--interval is deprecated, please use `--cron` instead
Time after which a successfully completed task would be run again, supported units are:
* 'd' - days
Expand All @@ -33,6 +34,7 @@ interval: |
For example, if you select '--interval 7d' task would run weekly at the '--start-date' time.
start-date: |
--start-date is deprecated, please use `--cron` instead
The date can be expressed relatively to now or as a RFC3339 formatted string.
To run the task in 2 hours use 'now+2h', supported units are:
Expand Down

0 comments on commit 9afdd3d

Please sign in to comment.