Skip to content

Commit

Permalink
Example addon
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexei Chekulaev committed Apr 17, 2017
1 parent fec9634 commit 8de8cf3
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 0 deletions.
24 changes: 24 additions & 0 deletions example/example
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/usr/bin/env bash

VERSION="1.0"

## Example addon
##
## This is an example addon. It's purpose is to show sample folder structure
## and concepts of creating addons.
##
## fin example <command>
##
## Usage:
## hello Displays contents of 'somefile'
## version Display addon version. Every addon has this command automatically


case "$1" in
hello)
cat "$ADDON_ROOT/some-additional-files/somefile"
;;
*)
fin help example
;;
esac
1 change: 1 addition & 0 deletions example/example.filelist
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
some-additional-files/somefile
Empty file added example/post-install
Empty file.
Empty file added example/pre-install
Empty file.
1 change: 1 addition & 0 deletions example/some-additional-files/somefile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello, Docksal!

0 comments on commit 8de8cf3

Please sign in to comment.