forked from joostdecock/core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfreesewing
executable file
·31 lines (30 loc) · 1.01 KB
/
freesewing
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
if [ $# -eq 0 ]
then
bold=$(tput bold)
normal=$(tput sgr0)
echo "${bold}USAGE:"
echo "${normal} freesewing [key=value ...]"
echo ""
echo "${bold}EXAMPLES:"
echo "${bold} Show this help:"
echo "${normal} freesewing"
echo ""
echo "${bold} Contact the info service, return data in text format:"
echo "${normal} freesewing service=info format=text"
echo ""
echo "${bold} Get info on the SimonShirt pattern:"
echo "${normal} freesewing service=info format=text pattern=SimonShirt"
echo ""
echo "${bold} Draft the WahidWaistcoat pattern with default measurements and options:"
echo "${normal} freesewing service=draft pattern=WahidWaistcoat"
echo ""
echo "${bold}SEE ALSO:"
echo "${normal} https://freesewing.org/docs/core/cli"
else
for var in "$@"
do
input="${input} $var"
done
php index.php $input
fi