Skip to content

Commit

Permalink
Change version behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexei Chekulaev committed Jun 29, 2017
1 parent c5fdf17 commit 6f2df9a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions example/example
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,17 @@ VERSION="1.0"
## fin example <command>
##
## Usage:
## hello Displays contents of 'somefile'
## version Display addon version. Every addon has this command automatically
## hello Display contents of 'somefile'
## version Display addon version


case "$1" in
hello)
cat "$ADDON_ROOT/some-additional-files/somefile"
;;
version|-v)
echo "$VERSION"
;;
*)
fin help example
;;
Expand Down

0 comments on commit 6f2df9a

Please sign in to comment.