Commit de37e7c1 authored by Alain M. Lafon's avatar Alain M. Lafon

Merge branch 'new-project-helper' into 'master'

New project helper

See merge request 200ok/200ok.gitlab.io!126
parents 5e07641f 83f1b9a5
Pipeline #1110 passed with stage
in 8 minutes and 30 seconds
......@@ -7,10 +7,18 @@ function new-post() {
echo "Created $TARGET"
}
function new-project() {
NAME=$(echo "$*" | sed -e "s/ /_/g")
TARGET=manifest/projects/$NAME.yml
TITLE=$NAME sh ./.templates/project.yml.sh > $TARGET
echo "Created $TARGET"
}
echo
echo "Welcome $(whoami)!"
echo
echo " new-post <title>"
echo " new-project <name>"
echo " boot dev"
echo
echo " sudo update-alternatives --set java /usr/lib/jvm/jdk-8-oracle-x64/jre/bin/java"
......
#!/bin/sh
USER=$(whoami)
DATE=$(date -I)
cat <<EOF
---
name: $TITLE
url: https://gitlab.com/200ok/$TITLE
image: /img/products/$TITLE.svg
opensourced: $DATE
priority: 10
technologies:
- clojure
- ...
people:
- $USER
short-description: >-
bla bla
description: >-
markdown formatted bla bla
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment