You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For script integration and general utility, it would be nice to have the ability to
cosume stdin as css input
emit processed result on stdout
Current workflow for input seems to assume a signle local file exists with all input. This may not be the case. Direct input building via e.g. *nix cat or input fetching with wget or curl is not possible because of this assumption. A separate file building step is required in these cases.
Current workflow for output always produces a new file decorated with .min intermediate extension if the --output option is omitted. This prevents e.g. quick change detection by piping into md5sum, wc -c and so forth, or further processing by other tools. It also prevents shell-based file redirection.
The usual convention for stdin / stdout processing in command line tools is to either do it by default, in absence of file-specific options, or to recognize - as a ~magic file name referring to either stdin or stdout.
Input could potentially default to stdin. Defaulting output to stdout OTOH would break compatibility with all existing scripts using css-purge.
The text was updated successfully, but these errors were encountered:
For script integration and general utility, it would be nice to have the ability to
Current workflow for input seems to assume a signle local file exists with all input. This may not be the case. Direct input building via e.g. *nix
cat
or input fetching withwget
orcurl
is not possible because of this assumption. A separate file building step is required in these cases.Current workflow for output always produces a new file decorated with
.min
intermediate extension if the--output
option is omitted. This prevents e.g. quick change detection by piping intomd5sum
,wc -c
and so forth, or further processing by other tools. It also prevents shell-based file redirection.The usual convention for stdin / stdout processing in command line tools is to either do it by default, in absence of file-specific options, or to recognize
-
as a ~magic file name referring to either stdin or stdout.Input could potentially default to stdin. Defaulting output to stdout OTOH would break compatibility with all existing scripts using css-purge.
The text was updated successfully, but these errors were encountered: