-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Welcome to the dockyard-cli wiki!
This command will run git fetch and git pull across all repositories which defined in .dockyard.yaml.
This command will run git status across all repositories which defined in .dockyard.yaml.
This command accept multiple arguments, and we have two ways to update the file.
1.
--file: this is meaning which one file in all the repositories you need update.
--old: the old content need to replace of.
--new: the new content need to replace.
--message: the git commit message.
please check below example:
dockyard patch --file sample.yaml --old 'thisIsOldChar' --new 'thisIsNewChar' --message 'update in sample.yaml'.
2.
we can use regex to do the update, when you input --regex we will use regex mode to update the content.
and we will get the regex command from --old.
please check this as example.
dockyard patch --file test.txt --old '\bOld\w*\b' --new 'New' --regex
you also can run dryrun before you run the actual run, the dryrun command will collect how many repositories will update. you can simply add --dryrun after the command.