Changeset bc21fc7 in gignore
- Timestamp:
- 5 Apr 2026, 22:27:09 (3 weeks ago)
- Branches:
- help, man, multi_arg, trunk
- Children:
- cd4570f
- Parents:
- 9fb1877
- File:
-
- 1 edited
-
src/main.rs (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/main.rs
r9fb1877 rbc21fc7 52 52 #[derive(Subcommand)] 53 53 enum OperCommand { 54 /// Removes paths within .gitignore, or the file itself .54 /// Removes paths within .gitignore, or the file itself if no path is specified. 55 55 Remove { 56 /// Path to remove 56 /// Path to remove. 57 57 path: Option<String>, 58 58 }, … … 60 60 /// Adds paths or .gitignore file. 61 61 Add { 62 /// Path to add 62 /// Path to add. 63 63 path: Option<String>, 64 64 }, 65 65 66 /// Lists items within .gitignore 66 /// Lists items within .gitignore. 67 67 List { 68 68 /// Print contents on one line, separated by whitespace. … … 80 80 #[derive(Subcommand)] 81 81 enum TemplateCommand { 82 /// Add template names and source files to the library 82 /// Add template names and source files to the library. 83 83 Add { 84 /// Name to add to library84 /// Name of template to be added. 85 85 name: String, 86 /// Source file to add to library86 /// Source file of template to be added. 87 87 source_file: String, 88 88 89 89 #[arg(long, short)] 90 /// Append template to .gitignore when using (rather than truncating )90 /// Append template to .gitignore when using (rather than truncating.) 91 91 append: bool, 92 92 }, 93 93 94 /// Remove templates from the library 94 /// Remove templates from the library. 95 95 Remove { 96 /// Name to remove from library96 /// Name of template to remove. 97 97 name: String, 98 98 }, 99 99 100 /// Use templates 100 /// Use templates. 101 101 Use { 102 /// Name to write to gitignore102 /// Name of template to write to .gitignore. 103 103 name: String, 104 104 }, 105 105 106 /// List entries in library106 /// List entries in template library. 107 107 List { 108 108 #[arg(long)] 109 /// Print entries on one line 109 /// Print entries on one line. 110 110 oneline: bool, 111 111 }, 112 112 113 /// Clear template library 113 /// Clear template library. 114 114 Clear, 115 115 }
Note:
See TracChangeset
for help on using the changeset viewer.
