arzzen 9 jaren geleden
bovenliggende
commit
1751a67fdd
3 gewijzigde bestanden met toevoegingen van 11 en 8 verwijderingen
  1. 4
    4
      README.md
  2. 3
    0
      pert
  3. 4
    4
      pert.sh

+ 4
- 4
README.md Bestand weergeven

@@ -9,12 +9,12 @@ A command line PERT calculator for quick estimates.
9 9
 Comma separated task list in the form "1,2,12 4,5,9 2,3,6", where whitespace separates tasks.
10 10
 
11 11
 Usage:
12
-	pert [optimistic,realistic,pessimistic]
12
+	pert.sh [optimistic,realistic,pessimistic]
13 13
 
14 14
 Example:
15
-	pert 1,3,4
16
-	pert 10,15,20 5,7,10
17
-	pert "1,2,3" "15,17,20"
15
+	pert.sh 1,3,4
16
+	pert.sh 10,15,20 5,7,10
17
+	pert.sh "1,2,3" "15,17,20"
18 18
 </pre>
19 19
 
20 20
 ### Example

+ 3
- 0
pert Bestand weergeven

@@ -0,0 +1,3 @@
1
+#!/bin/bash
2
+
3
+. pert.sh

+ 4
- 4
pert.sh Bestand weergeven

@@ -4,11 +4,11 @@
4 4
 if [ -z "$1" ] || [[ "$1" =~ [-]*(help|h) ]]; then
5 5
     echo -e "\nA command line PERT calculator for quick estimates."
6 6
     echo -e "\nComma separated task list in the form \"1,2,12 4,5,9 2,3,6\", where whitespace separates tasks."
7
-    echo -e "\nUsage:\n\tpert [optimistic,realistic,pessimistic]\n"
7
+    echo -e "\nUsage:\n\tpert.sh [optimistic,realistic,pessimistic]\n"
8 8
     echo -e "Example:"
9
-    echo -e "\tpert 1,3,4"
10
-    echo -e "\tpert 10,15,20 5,7,10"
11
-    echo -e "\tpert \"1,2,3\" \"15,17,20\"\n"
9
+    echo -e "\tpert.sh 1,3,4"
10
+    echo -e "\tpert.sh 10,15,20 5,7,10"
11
+    echo -e "\tpert.sh \"1,2,3\" \"15,17,20\"\n"
12 12
     exit 1
13 13
 fi
14 14
 

Loading…
Annuleren
Opslaan