diff options
author | 2015-07-29 03:43:31 +0200 | |
---|---|---|
committer | 2015-07-29 03:43:31 +0200 | |
commit | 9dc6ef67716eae967b53f884629b9d20b9ed16bd (patch) | |
tree | 26bfc2aa8e66ff2247abe771e4ca3ece95f98f00 | |
parent | a6a16808e34966fa8650fdda0538ba85a8019c5e (diff) |
Tab-Completition for sass
-rw-r--r-- | share/completions/sass-convert.fish | 53 | ||||
-rw-r--r-- | share/completions/sass.fish | 80 | ||||
-rw-r--r-- | share/completions/scss.fish | 81 |
3 files changed, 214 insertions, 0 deletions
diff --git a/share/completions/sass-convert.fish b/share/completions/sass-convert.fish new file mode 100644 index 00000000..db994243 --- /dev/null +++ b/share/completions/sass-convert.fish @@ -0,0 +1,53 @@ +# Usage: sass-convert [options] [INPUT] [OUTPUT] + +# Description: +# Converts between CSS, indented syntax, and SCSS files. For example, +# this can convert from the indented syntax to SCSS, or from CSS to +# SCSS (adding appropriate nesting). + +# Common Options: +# -F, --from FORMAT The format to convert from. Can be css, scss, sass. +# By default, this is inferred from the input filename. +# If there is none, defaults to css. +complete -c sass-convert -s F -l from -x -a "css scss sass" -A -d "The format to convert from. Can be css, scss, sass. By default, this is inferred from the input filename. If there is none, defaults to css." +# -T, --to FORMAT The format to convert to. Can be scss or sass. +# By default, this is inferred from the output filename. +# If there is none, defaults to sass. +complete -c sass-convert -s T -l to -x -a "scss sass" -A -d "The format to convert to. Can be scss or sass. By default, this is inferred from the output filename. If there is none, defaults to sass." +# -i, --in-place Convert a file to its own syntax. +# This can be used to update some deprecated syntax. +complete -c sass-convert -s i -l in-place -d "Convert a file to its own syntax. This can be used to update some deprecated syntax." +# -R, --recursive Convert all the files in a directory. Requires --from and --to. +complete -c sass-convert -s R -l recursive -d "Convert all the files in a directory. Requires --from and --to." +# -?, -h, --help Show this help message. +complete -c sass-convert -s '?' -s h -l help -f -d "Show help message." +# -v, --version Print the Sass version. +complete -c sass-convert -s v -l version -f -d "Print the Sass version." + +# Style: +# --dasherize Convert underscores to dashes. +complete -c sass-convert -l dasherize -d "Convert underscores to dashes." +# --indent NUM How many spaces to use for each level of indentation. Defaults to 2. +# "t" means use hard tabs. +complete -c sass-convert -l indent -x -d "How many spaces to use for each level of indentation. Defaults to 2. 't' means use hard tabs." +# --old Output the old-style ":prop val" property syntax. +# Only meaningful when generating Sass. +complete -c sass-convert -l old -d "Output the old-style ':prop val' property syntax. Only meaningful when generating Sass." + +# Input and Output: +# -s, --stdin Read input from standard input instead of an input file. +# This is the default if no input file is specified. Requires --from. +complete -c sass-convert -s s -l stdin -d "Read input from standard input instead of an input file. This is the default if no input file is specified. Requires --from." +# -E, --default-encoding ENCODING Specify the default encoding for input files. +complete -c sass-convert -s E -l default-encoding -x -d "Specify the default encoding for input files." +# --unix-newlines Use Unix-style newlines in written files. +# Always true on Unix. +complete -c sass-convert -l unix-newlines -d "Use Unix-style newlines in written files. Always true on Unix." + +# Miscellaneous: +# --cache-location PATH The path to save parsed Sass files. Defaults to .sass-cache. +complete -c sass-convert -l cache-location -r -d "The path to save parsed Sass files. Defaults to .sass-cache." +# -C, --no-cache Don't cache to sassc files. +complete -c sass-convert -s C -l no-cache -d "Don't cache to sassc files." +# --trace Show a full Ruby stack trace on error +complete -c sass-convert -l trace -d "Show a full Ruby stack trace on error." diff --git a/share/completions/sass.fish b/share/completions/sass.fish new file mode 100644 index 00000000..551ee368 --- /dev/null +++ b/share/completions/sass.fish @@ -0,0 +1,80 @@ +# Usage: sass [options] [INPUT] [OUTPUT] + +# Description: +# Converts SCSS or Sass files to CSS. + +# Common Options: +# -I, --load-path PATH Specify a Sass import path. +complete -c sass -s I -l load-path -r -d "Specify a Sass import path." +# -r, --require LIB Require a Ruby library before running Sass. +complete -c sass -s r -l require -x -d "Require a Ruby library before running Sass." +# --compass Make Compass imports available and load project configuration. +complete -c sass -l compass -d "Make Compass imports available and load project configuration." +# -t, --style NAME Output style. Can be nested (default), compact, compressed, or expanded. +complete -c sass -s t -l style -x -A -a "nested compact compressed expanded" -d "Output style. Can be nested (default), compact, compressed, or expanded." +# -?, -h, --help Show this help message. +complete -c sass -s '?' -s h -l help -f -d "Show help message." +# -v, --version Print the Sass version. +complete -c sass -s v -l version -f -d "Print the Sass version." + +# Watching and Updating: +# --watch Watch files or directories for changes. +# The location of the generated CSS can be set using a colon: +# sass --watch input.sass:output.css +# sass --watch input-dir:output-dir +complete -c sass -l watch -d "Watch files or directories for changes. The location of the generated CSS can be set using a colon: input.sass:output.css input-dir:output-dir" +# --poll Check for file changes manually, rather than relying on the OS. +# Only meaningful for --watch. +complete -c sass -l poll -d "Check for file changes manually, rather than relying on the OS. Only meaningful for --watch." +# --update Compile files or directories to CSS. +# Locations are set like --watch. +complete -c sass -l update -d "Compile files or directories to CSS. The location of the generated CSS can be set using a colon: input.sass:output.css input-dir:output-dir" +# -f, --force Recompile every Sass file, even if the CSS file is newer. +# Only meaningful for --update. +complete -c sass -s f -l force -d "Recompile every Sass file, even if the CSS file is newer. Only meaningful for --update." +# --stop-on-error If a file fails to compile, exit immediately. +# Only meaningful for --watch and --update. +complete -c sass -l stop-on-error -d "If a file fails to compile, exit immediately. Only meaningful for --watch and --update." + +# Input and Output: +# --scss Use the CSS-superset SCSS syntax. +complete -c sass -l scss -d "Use the CSS-superset SCSS syntax." +# --sourcemap=TYPE How to link generated output to the source files. +# auto (default): relative paths where possible, file URIs elsewhere +# file: always absolute file URIs +# inline: include the source text in the sourcemap +# none: no sourcemaps +complete -c sass -l sourcemap -x -A -a "auto\t'(default) relative paths where possible, file URIs elsewhere' +sfile\t'always absolute file URIs' +inline\t'include the source text in the sourcemap' +none\t'no sourcemaps'" -d "How to link generated output to the source files." +# -s, --stdin Read input from standard input instead of an input file. +# This is the default if no input file is specified. +complete -c sass -s s -l stdin -d "Read input from standard input instead of an input file. This is the default if no input file is specified." +# -E, --default-encoding ENCODING Specify the default encoding for input files. +complete -c sass -s E -l default-encoding -x -d "Specify the default encoding for input files." +# --unix-newlines Use Unix-style newlines in written files. +# Always true on Unix. +complete -c sass -l unix-newlines -d "Use Unix-style newlines in written files. Always true on Unix." +# -g, --debug-info Emit output that can be used by the FireSass Firebug plugin. +complete -c sass -s g -l debug-info -d "Emit output that can be used by the FireSass Firebug plugin." +# -l, --line-numbers Emit comments in the generated CSS indicating the corresponding source line. +# --line-comments +complete -c sass -s l -l line-numbers -l line-comments -d "Emit comments in the generated CSS indicating the corresponding source line." + +# Miscellaneous: +# -i, --interactive Run an interactive SassScript shell. +complete -c sass -s i -l interactive -d "Run an interactive SassScript shell." +# -c, --check Just check syntax, don't evaluate. +complete -c sass -s c -l check -d "Just check syntax, don't evaluate." +# --precision NUMBER_OF_DIGITS How many digits of precision to use when outputting decimal numbers. +# Defaults to 5. +complete -c sass -l precision -x -d "How many digits of precision to use when outputting decimal numbers. Defaults to 5." +# --cache-location PATH The path to save parsed Sass files. Defaults to .sass-cache. +complete -c sass -l cache-location -r -d "The path to save parsed Sass files. Defaults to .sass-cache." +# -C, --no-cache Don't cache parsed Sass files. +complete -c sass -s C -l no-cache -d "Don't cache parsed Sass files." +# --trace Show a full Ruby stack trace on error. +complete -c sass -l trace -d "Show a full Ruby stack trace on error." +# -q, --quiet Silence warnings and status messages during compilation. +complete -c sass -s q -l quiet -d "Silence warnings and status messages during compilation." diff --git a/share/completions/scss.fish b/share/completions/scss.fish new file mode 100644 index 00000000..4fb3e329 --- /dev/null +++ b/share/completions/scss.fish @@ -0,0 +1,81 @@ +# Usage: scss [options] [INPUT] [OUTPUT] + +# Description: +# Converts SCSS or Sass files to CSS. + +# Common Options: +# -I, --load-path PATH Specify a Sass import path. +complete -c scss -s I -l load-path -r -d "Specify a Sass import path." +# -r, --require LIB Require a Ruby library before running Sass. +complete -c scss -s r -l require -r -d "Require a Ruby library before running Sass." +# --compass Make Compass imports available and load project configuration. +complete -c scss -l compass -d "Make Compass imports available and load project configuration." +# -t, --style NAME Output style. Can be nested (default), compact, compressed, or expanded. +complete -c scss -s t -l style -x -a "nested compact compressed expanded" -A -d "Output style. Can be nested (default), compact, compressed, or expanded." +# -?, -h, --help Show this help message. +complete -c scss -s '?' -s h -l help -f -d "Show help message." +# -v, --version Print the Sass version. +complete -c scss -s v -l version -f -d "Print the Sass version." + +# Watching and Updating: +# --watch Watch files or directories for changes. +# The location of the generated CSS can be set using a colon: +# scss --watch input.scss:output.css +# scss --watch input-dir:output-dir +complete -c scss -l watch -d "Watch files or directories for changes. The location of the generated CSS can be set using a colon: input.scss:output.css input-dir:output-dir" +# --poll Check for file changes manually, rather than relying on the OS. +# Only meaningful for --watch. +complete -c scss -l poll -d "Check for file changes manually, rather than relying on the OS. Only meaningful for --watch." +# --update Compile files or directories to CSS. +# Locations are set like --watch. +complete -c scss -l update -d "Compile files or directories to CSS. The location of the generated CSS can be set using a colon: input.scss:output.css input-dir:output-dir" +# -f, --force Recompile every Sass file, even if the CSS file is newer. +# Only meaningful for --update. +complete -c scss -s f -l force -d "Recompile every Sass file, even if the CSS file is newer. Only meaningful for --update." +# --stop-on-error If a file fails to compile, exit immediately. +# Only meaningful for --watch and --update. +complete -c scss -l stop-on-error -d "If a file fails to compile, exit immediately. Only meaningful for --watch and --update." + +# Input and Output: +# --sass Use the indented Sass syntax. +complete -c scss -l sass -d "Use the indented Sass syntax." +# --sourcemap=TYPE How to link generated output to the source files. +# auto (default): relative paths where possible, file URIs elsewhere +# file: always absolute file URIs +# inline: include the source text in the sourcemap +# none: no sourcemaps +complete -c scss -l sourcemap -x -A -d "How to link generated output to the source files." -a \ +"auto\t'(default) relative paths where possible, file URIs elsewhere' +file\t'always absolute file URIs' +inline\t'include the source text in the sourcemap' +none\t'no sourcemaps'" +# -s, --stdin Read input from standard input instead of an input file. +# This is the default if no input file is specified. +complete -c scss -s s -l stdin -d "Read input from standard input instead of an input file. This is the default if no input file is specified." +# -E, --default-encoding ENCODING Specify the default encoding for input files. +complete -c scss -s E -l default-encoding -x -d "Specify the default encoding for input files." +# --unix-newlines Use Unix-style newlines in written files. +# Always true on Unix. +complete -c scss -l unix-newlines -d "Use Unix-style newlines in written files. Always true on Unix." +# -g, --debug-info Emit output that can be used by the FireSass Firebug plugin. +complete -c scss -s g -l debug-info -d "Emit output that can be used by the FireSass Firebug plugin." +# -l, --line-numbers Emit comments in the generated CSS indicating the corresponding source line. +# --line-comments +complete -c scss -s l -l line-numbers -l line-comments -d "Emit comments in the generated CSS indicating the corresponding source line." + +# Miscellaneous: +# -i, --interactive Run an interactive SassScript shell. +complete -c scss -s i -l interactive -d "Run an interactive SassScript shell." +# -c, --check Just check syntax, don't evaluate. +complete -c scss -s c -l check -d "Just check syntax, don't evaluate." +# --precision NUMBER_OF_DIGITS How many digits of precision to use when outputting decimal numbers. +# Defaults to 5. +complete -c scss -l precision -x -d "How many digits of precision to use when outputting decimal numbers. Defaults to 5." +# --cache-location PATH The path to save parsed Sass files. Defaults to .sass-cache. +complete -c scss -l cache-location -r -d "The path to save parsed Sass files. Defaults to .sass-cache." +# -C, --no-cache Don't cache parsed Sass files. +complete -c scss -s C -l no-cache -d "Don't cache parsed Sass files." +# --trace Show a full Ruby stack trace on error. +complete -c scss -l trace -d "Show a full Ruby stack trace on error." +# -q, --quiet Silence warnings and status messages during compilation. +complete -c scss -s q -l quiet -d "Silence warnings and status messages during compilation." |