CLI command
weles documents prune
Name the copies of one document beyond the newest --keep, and with --yes remove each file with its record; --keep is a whole number of at least 1, so the newest copy always stays, and a copy that cannot be removed is refused by name.
Purpose#
Name the copies of one document beyond the newest --keep, and with --yes remove each file with its record; --keep is a whole number of at least 1, so the newest copy always stays, and a copy that cannot be removed is refused by name.
Invocation#
weles documents prune --document <platform.verb> --keep <n> [--yes] [--json]Options#
| Option | Effect |
|---|---|
--document | weles --help names this option in the usage line and gives it no description. |
--keep | weles --help names this option in the usage line and gives it no description. |
--yes | weles --help names this option in the usage line and gives it no description. |
--json | Print the answer as one JSON document instead of key: value lines. release surface always prints its JSON document: it is the file a release carries. |
Help#
`weles documents prune --help` prints these usage lines and never runs the command.