utils normalize-line-endings

Aliases: 
  • line-endings
  •  
    Parameters:
    Name Type Required Default Hint
    files globber true A file globbing pattern that matches one or more files
    type string false unix Which type of line ending to use, options: [unix, windows, mac]
    exclude string false A list of globbing patterns to ignore
    force boolean false false Skip user confirmation of modiying files
    verbose boolean false false Output additional information about each file affected

    Command Usage

    Normalizes the line endings in a file. Operates on a single file
    or multiple files as defined by a file globbing pattern.

    line-endings **.cf*
    To skip the confirmation, use the --force flag.
    line-endings models/**.cfc --force
    Print the file path of each file affected with the --verbose flag.
    line-endings includes/*.cfm --verbose
    Exclude a list a globber patterns
    line-endings ** *.png,node_modules/
    You can set global default parameters for this command to use like so:
    config set command.defaults.line-endings.force=true
    
    config set command.defaults.line-endings.verbose=true
    config set command.defaults.line-endings.exclude=.git/,*.png