Pre-update commands (fix #25)

This commit is contained in:
Roey Darwish Dror
2018-06-20 20:26:08 +03:00
parent ca12f8e513
commit 2ee068f4fb
3 changed files with 24 additions and 2 deletions

View File

@@ -55,6 +55,14 @@ git_repos = [
"~/dev/topgrade",
]
[pre_commands]
"Emacs Snapshot" = "rm -rf ~/.emacs.d/elpa.bak && cp -rl ~/.emacs.d/elpa ~/.emacs.d/elpa.bak"
[commands]
"Python Environment" = "~/dev/.env/bin/pip install -i https://pypi.python.org/simple -U --upgrade-strategy eager jupyter"
```
* `git_repos` - A list of custom Git repositories to pull
* `pre_commands` - Commands to execute before starting any action. If any command fails, Topgrade
will not proceed
* `commands` - Custom upgrade steps. If any command fails it will be reported in the summary as all
upgrade steps are reported, but it will not cause Topgrade to stop.