Skip to content

Commit

Permalink
refactor: paket file events definition
Browse files Browse the repository at this point in the history
  • Loading branch information
joseluisq committed Feb 20, 2021
1 parent 9494c4f commit d8b42a1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 3 additions & 3 deletions conf.d/gitnow.fish
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# GitNow — Speed up your Git workflow. 🐠
# https://github.com/joseluisq/gitnow

function __gitnow_install -e paket_install
function __gitnow_install -e gitnow_install
echo (gitnow -v)" is installed and ready to use!"
echo "Just run the `gitnow` command if you want explore the API."
end

function __gitnow_uninstall -e paket_uninstall
echo "GitNow is uninstalled successfully."
function __gitnow_uninstall -e gitnow_uninstall
echo "GitNow was uninstalled successfully."
end

function gitnow -d "Gitnow: Speed up your Git workflow. 🐠" -a xversion
Expand Down
5 changes: 5 additions & 0 deletions paket.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,9 @@ include = [
"conf.d/.gitnow"
]

[events]
after-install = "gitnow_install"
after-update = "gitnow_update"
before-uninstall = "gitnow_uninstall"

[dependencies]

0 comments on commit d8b42a1

Please sign in to comment.