Robin Thellend | 4523df6 | 2014-12-08 09:55:46 -0800 | [diff] [blame] | 1 | // This file was auto-generated via go generate. |
| 2 | // DO NOT UPDATE MANUALLY |
| 3 | |
| 4 | /* |
| 5 | gclogs is a utility that safely deletes old log files. |
| 6 | |
| 7 | It looks for file names that match the format of files produced by the vlog |
| 8 | package, and deletes the ones that have not changed in the amount of time |
| 9 | specified by the --cutoff flag. |
| 10 | |
| 11 | Only files produced by the same user as the one running the gclogs command are |
| 12 | considered for deletion. |
| 13 | |
| 14 | Usage: |
| 15 | gclogs [flags] <dir> ... |
| 16 | |
| 17 | <dir> ... A list of directories where to look for log files. |
| 18 | |
| 19 | The gclogs flags are: |
| 20 | -cutoff=24h0m0s |
| 21 | The age cut-off for a log file to be considered for garbage collection. |
| 22 | -n=false |
| 23 | If true, log files that would be deleted are shown on stdout, but not |
| 24 | actually deleted. |
| 25 | -program=.* |
| 26 | A regular expression to apply to the program part of the log file name, e.g |
| 27 | ".*test". |
| 28 | -verbose=false |
| 29 | If true, each deleted file is shown on stdout. |
| 30 | */ |
| 31 | package main |