This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
usage() { | |
echo "Usage: $0 --watch <path_pattern> --cmd <command>" | |
echo " Monitors files/directories matching <path_pattern> for close_write events" | |
echo " and executes <command> upon detection." | |
echo " The placeholder {} in <command> will be replaced with the full path of the changed file." | |
echo "Examples:" | |
echo " $0 --watch 'src/**/*.js' --cmd 'echo \"File {} changed\" && eslint {}'" | |
echo " $0 --watch '/config/app.conf' --cmd '/bin/bash /opt/scripts/reload_service.sh {}'" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
<keywords> | |
test, python, couchdb, database, create, connect, server | |
</keywords> | |
<description> | |
This script connects to a CouchDB server and creates a database named "tutorial" | |
if it does not already exist. | |
</description> | |
""" |
OlderNewer