Changeset bc21fc7 in gignore


Ignore:
Timestamp:
5 Apr 2026, 22:27:09 (3 weeks ago)
Author:
Asher Mullaney <asher.mullaney@…>
Branches:
help, man, multi_arg, trunk
Children:
cd4570f
Parents:
9fb1877
Message:

Clarified command help a bit. Not much, but a start.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main.rs

    r9fb1877 rbc21fc7  
    5252#[derive(Subcommand)]
    5353enum OperCommand {
    54     /// Removes paths within .gitignore, or the file itself.
     54    /// Removes paths within .gitignore, or the file itself if no path is specified.
    5555    Remove {
    56         /// Path to remove
     56        /// Path to remove.
    5757        path: Option<String>,
    5858    },
     
    6060    /// Adds paths or .gitignore file.
    6161    Add {
    62         /// Path to add
     62        /// Path to add.
    6363        path: Option<String>,
    6464    },
    6565
    66     /// Lists items within .gitignore
     66    /// Lists items within .gitignore.
    6767    List {
    6868        /// Print contents on one line, separated by whitespace.
     
    8080#[derive(Subcommand)]
    8181enum TemplateCommand {
    82     /// Add template names and source files to the library
     82    /// Add template names and source files to the library.
    8383    Add {
    84         /// Name to add to library
     84        /// Name of template to be added.
    8585        name: String,
    86         /// Source file to add to library
     86        /// Source file of template to be added.
    8787        source_file: String,
    8888
    8989        #[arg(long, short)]
    90         /// Append template to .gitignore when using (rather than truncating)
     90        /// Append template to .gitignore when using (rather than truncating.)
    9191        append: bool,
    9292    },
    9393
    94     /// Remove templates from the library
     94    /// Remove templates from the library.
    9595    Remove {
    96         /// Name to remove from library
     96        /// Name of template to remove.
    9797        name: String,
    9898    },
    9999
    100     /// Use templates
     100    /// Use templates.
    101101    Use {
    102         /// Name to write to gitignore
     102        /// Name of template to write to .gitignore.
    103103        name: String,
    104104    },
    105105
    106     /// List entries in library
     106    /// List entries in template library.
    107107    List {
    108108        #[arg(long)]
    109         /// Print entries on one line
     109        /// Print entries on one line.
    110110        oneline: bool,
    111111    },
    112112
    113     /// Clear template library
     113    /// Clear template library.
    114114    Clear,
    115115}
Note: See TracChangeset for help on using the changeset viewer.