Skip to content

Instantly share code, notes, and snippets.

@VernonGrant
Forked from gabrielbidula/pint.sh
Created April 24, 2024 12:22
Show Gist options
  • Save VernonGrant/5ce53d5785cef044a9b61371a6db7180 to your computer and use it in GitHub Desktop.
Save VernonGrant/5ce53d5785cef044a9b61371a6db7180 to your computer and use it in GitHub Desktop.
fake laravel pint formatter mode
#!/bin/bash
# Check if an argument was provided
if [ $# -eq 0 ]; then
echo "No file path provided."
exit 1
fi
# Use the provided argument (file path)
file="$1"
# Ensure the file exists
if [ ! -f "$file" ]; then
echo "File does not exist: $file"
exit 1
fi
# Run pint on the provided file without outputting any progress or errors
/path/to/pint --quiet "$file"
# Output the content of the file
cat "$file"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment