creyD/prettier_action

[FEATURE] Print the `prettier` command to be executed before executing it

Opened this issue · 0 comments

What would you like to change about the program?
Print the prettier command to be executed before executing it

Why do you think this is a cool idea?
New contributors, may not have prettier installed locally and need to set it up. After setup, they need to execute it.

It becomes easier for these contributors to understand what is needed in the execution stage if the full command which prettier_action executes is printed

echo "Prettifying files..."
echo "Files:"
prettier $INPUT_PRETTIER_OPTIONS \
|| { PRETTIER_RESULT=$?; echo "Problem running prettier with $INPUT_PRETTIER_OPTIONS"; exit 1; }
echo "Prettier result: $PRETTIER_RESULT"