Jiri Simsa | 3f4e92d | 2015-03-24 21:26:37 -0700 | [diff] [blame] | 1 | // Copyright 2015 The Vanadium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style |
| 3 | // license that can be found in the LICENSE file. |
| 4 | |
Robin Thellend | 4523df6 | 2014-12-08 09:55:46 -0800 | [diff] [blame] | 5 | // This file was auto-generated via go generate. |
| 6 | // DO NOT UPDATE MANUALLY |
| 7 | |
| 8 | /* |
Todd Wang | 6ed3b6c | 2015-04-08 14:37:04 -0700 | [diff] [blame] | 9 | Command gclogs safely deletes old log files. |
Robin Thellend | 4523df6 | 2014-12-08 09:55:46 -0800 | [diff] [blame] | 10 | |
| 11 | It looks for file names that match the format of files produced by the vlog |
| 12 | package, and deletes the ones that have not changed in the amount of time |
| 13 | specified by the --cutoff flag. |
| 14 | |
| 15 | Only files produced by the same user as the one running the gclogs command are |
| 16 | considered for deletion. |
| 17 | |
| 18 | Usage: |
| 19 | gclogs [flags] <dir> ... |
| 20 | |
| 21 | <dir> ... A list of directories where to look for log files. |
| 22 | |
| 23 | The gclogs flags are: |
| 24 | -cutoff=24h0m0s |
| 25 | The age cut-off for a log file to be considered for garbage collection. |
| 26 | -n=false |
| 27 | If true, log files that would be deleted are shown on stdout, but not |
| 28 | actually deleted. |
| 29 | -program=.* |
| 30 | A regular expression to apply to the program part of the log file name, e.g |
| 31 | ".*test". |
| 32 | -verbose=false |
| 33 | If true, each deleted file is shown on stdout. |
Matt Rosencrantz | 83b0b7f | 2015-03-26 16:17:01 -0700 | [diff] [blame] | 34 | |
| 35 | The global flags are: |
Jiri Simsa | 26f1c4d | 2015-08-09 17:49:40 -0700 | [diff] [blame] | 36 | -metadata=<just specify -metadata to activate> |
Todd Wang | 3f7ceb4 | 2015-05-04 17:51:34 -0700 | [diff] [blame] | 37 | Displays metadata for the program and exits. |
Robin Thellend | 4523df6 | 2014-12-08 09:55:46 -0800 | [diff] [blame] | 38 | */ |
| 39 | package main |