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
(maybe) a property test to ensure that formatting is idempotent
cleanup
extract Text.PrettyPrint.Avh4 to a separate library to share with elm-format
Planned CLI options:
gren format [INPUTS... | --stdin] [--yes] [--validate]
INPUTS: zero or more files to format, or directories to recursively search for gren files to format. If none are given, use the directories implied by gren.json
--stdin: instead of formatting files, read stdin and format it to stdout
--yes: don't prompt for confirmation before formatting files and overwriting them (does nothing with --stdin)
--validate: Don't modify files, and exit 0 if files are all formatted, or exit 1 if some files are not formatted. Intended for use on CI.
#38 is a discussion of possible approaches. This issue tracks implementation progress for the current approach.
gren.jsonAdd format CLI subcommand #46--yesAdd format CLI subcommand #46--validateImplement gren format --validate #143INPUTS...Add format CLI subcommand #46--stdinAdd format CLI subcommand #46caseandifexpressions #159Text.PrettyPrint.Avh4to a separate library to share with elm-formatPlanned CLI options:
INPUTS: zero or more files to format, or directories to recursively search for gren files to format. If none are given, use the directories implied bygren.json--stdin: instead of formatting files, read stdin and format it to stdout--yes: don't prompt for confirmation before formatting files and overwriting them (does nothing with--stdin)--validate: Don't modify files, and exit 0 if files are all formatted, or exit 1 if some files are not formatted. Intended for use on CI.