- Timestamp:
- 10/10/2009 10:41:02 (3 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
-
confman.8.in (modified) (2 diffs)
-
confman.in (modified) (1 diff)
-
confmandoc.sh (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/confman.8.in
r462 r463 208 208 .It Cm recipe 209 209 .Brq Cm get | list 210 .It Cm recipe 211 . Brq Cm create [ Fl R Ar filename ] | Cm edit | print | remove | set212 . Ar recipe210 .It Cm recipe create Oo Fl R Ar filename Oc Ar recipe 211 .It Cm recipe print Oo Ar recipe Oc 212 .It Cm recipe Bro Cm edit | remove | set Brc Ar recipe 213 213 .Bl -tag -width indent 214 214 .It Cm create … … 222 222 in a text editor 223 223 .It Cm get 224 Print the host's current recipe224 Print the name of the host's current recipe 225 225 .It Cm list 226 226 List all recipes 227 227 .It Cm print 228 228 Display the contents of 229 .Ar recipe 229 .Ar recipe . 230 Defaults to the host's current recipe. 230 231 .It Cm remove 231 232 Delete -
trunk/confman.in
r462 r463 1026 1026 1027 1027 function recipe_print { 1028 if [ -z "$1" ] ; then print_usage 1 ; fi1029 1028 local recipe="$1" 1029 1030 if [ -z "$recipe" ] ; then 1031 recipe=$(conf_get_recipe_name) 1032 fi 1033 1030 1034 if ! [ -f "$(conf_recipe_dir)/${recipe}" ] ; then 1031 1035 echo "Error: recipe $recipe does not exist." >&2 1032 1036 exit 1 1033 1037 fi 1038 1034 1039 cat "$(conf_recipe_dir)/${recipe}" 1035 1040 } -
trunk/confmandoc.sh
r462 r463 501 501 Usage: 502 502 $MYNAME recipe [ get | list ] 503 $MYNAME recipe print [ recipe_name ] 503 504 $MYNAME recipe [ create | edit | print | remove | set ] recipe_name 504 505 … … 507 508 create Create a recipe with the given name 508 509 edit Edit a recipe with the given name 509 get Print the host's recipe510 get List the host's recipe 510 511 list List all recipes 511 print Print the given recipe 512 print Print the given recipe (defaults to this host's recipe) 512 513 remove Delete a recipe with the given name 513 514 set Set the host's recipe to the given name
Note: See TracChangeset
for help on using the changeset viewer.
