utils add-eol-at-eof

Aliases: 
  • eol
  •  
    Parameters:
    Name Type Required Default Hint
    files globber true A file globbing pattern that matches one or more files
    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

    Ensure files have a trailing newline to adhere to POSIX standard. Operates on a single file
    or multiple files as defined by a file globbing pattern.

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