Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Updated template install with more test cases

  • Loading branch information...
commit 41e24983bc7282970b510486b5ef8f9a8b647353 1 parent 7da0b46
Long Nguyen longnguyen11288 authored

Showing 1 changed file with 16 additions and 0 deletions. Show diff stats Hide diff stats

  1. +16 0 bin/templates/install
16 bin/templates/install
@@ -50,6 +50,22 @@ ls -lh /tmp/README
50 50 # View template created
51 51 cat /tmp/README
52 52
  53 +# Clean up
  54 +file remove /tmp/README
  55 +
  56 +# Declare variable
  57 +typeset -a _variables
  58 +
  59 +# Set variable
  60 +_variables+=("application_name" "awesome_name" "environment_name" "staging")
  61 +
  62 +# Install the template README using variables from
  63 +templates install "apidoc/README" \
  64 + to /tmp/README \
  65 + variables from _variables
  66 +
  67 +cat /tmp/README
  68 +
53 69 # Clean up
54 70 file remove /tmp/README
55 71

0 comments on commit 41e2498

Please sign in to comment.
Something went wrong with that request. Please try again.