Skip to content

Commit

Permalink
new-issue command (closes #34)
Browse files Browse the repository at this point in the history
  • Loading branch information
Caio Moritz Ronchi committed Dec 19, 2016
1 parent 0d7da34 commit bd88414
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
21 changes: 21 additions & 0 deletions plugins/base/bin/cmd/new-issue_pre.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
CMD_DESCRIPTION="Prints the GitHub issue Markdown template."

function _itemized_plugins_name_and_version()
{
for dir_name in $(ls $ATHENA_PLGS_DIR); do
local version="$(cat $ATHENA_PLGS_DIR/$dir_name/version.txt)"
echo "${dir_name},${version}"
done
}

# check that docker is up or exit with a message
athena.docker >/dev/null

echo "**Athena Environment**"
echo "\`\`\`"
echo "OS: $(uname -a)"
echo "Athena version: $ATHENA_PLG_IMAGE_VERSION"
echo "Plugins: " ; _itemized_plugins_name_and_version | awk -F, '{ print " - " $1 " [" $2 "]" }'
echo "Images: " ; athena.docker images | grep "$ATHENA_PLG_IMAGE_NAME" | awk -F" " '{ print " - " $1 " ["$2"] " $3 }'
echo "Running containers: " ; athena.docker.list_athena_containers | awk -F "->" '{ print " - " $1 }'
echo "\`\`\`"
5 changes: 5 additions & 0 deletions plugins/base/bin/hooks/plugin_pre.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

if [ "${args[@]}" == "new-issue" ]; then
athena.os._set_no_logo 1
fi

0 comments on commit bd88414

Please sign in to comment.