Unified · Split
| @@ -102,6 +102,7 @@ thor docs:manifest # Create the manifest file used by the app · 101 unmodified lines | ||
| 102 | 102 | thor docs:generate # Generate/scrape a documentation |
| 103 | 103 | thor docs:page # Generate/scrape a documentation page |
| 104 | 104 | thor docs:package # Package a documentation for use with docs:download |
| 105 | +thor docs:clean # Delete documentation packages | |
| 105 | 106 | |
| 106 | 107 | # Console |
| 107 | 108 | thor console # Start a REPL |
| @@ -106,6 +106,12 @@ class DocsCLI < Thor · 105 unmodified lines | ||
| 106 | 106 | invalid_doc(error.name) |
| 107 | 107 | end |
| 108 | 108 | |
| 109 | + desc 'clean', 'Delete documentation packages' | |
| 110 | + def clean | |
| 111 | + File.delete(*Dir[File.join Docs.store_path, '*.tar.gz']) | |
| 112 | + puts 'Done' | |
| 113 | + end | |
| 114 | + | |
| 109 | 115 | private |
| 110 | 116 | |
| 111 | 117 | def find_docs(names) |