Changeset 482 for branches/confman-1.9


Ignore:
Timestamp:
11/11/2009 14:15:28 (2 years ago)
Author:
ccowart
Message:

Merging support for recipe print with no arguments from trunk.

Resolves #85

Location:
branches/confman-1.9
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/confman-1.9

    • Property svn:mergeinfo changed
      /trunkmerged: 463
  • branches/confman-1.9/confman.8.in

    r481 r482  
    219219.Brq Cm get | list 
    220220.It Cm recipe create Oo Fl R Ar filename Oc Oo Ar log_flags Oc Ar recipe 
    221 .It Cm recipe print Ar recipe 
     221.It Cm recipe print Oo Ar recipe Oc 
    222222.It Cm recipe Bro Cm edit | remove Brc Oo Ar log_flags Oc Ar recipe  
    223223.It Cm recipe set Ar recipe 
     
    233233in a text editor 
    234234.It Cm get 
    235 Print the host's current recipe 
     235Print the name of the host's current recipe 
    236236.It Cm list 
    237237List all recipes 
    238238.It Cm print 
    239239Display the contents of 
    240 .Ar recipe 
     240.Ar recipe . 
     241Defaults to the host's current recipe. 
    241242.It Cm remove 
    242243Delete  
  • branches/confman-1.9/confman.in

    r481 r482  
    11031103 
    11041104function recipe_print { 
    1105     if [ -z "$1" ] ; then print_usage 1 ; fi 
    11061105    local recipe="$1" 
     1106 
     1107    if [ -z "$recipe" ] ; then 
     1108        recipe=$(conf_get_recipe_name) 
     1109    fi 
     1110 
    11071111    if ! [ -f "$(conf_recipe_dir)/${recipe}" ] ; then 
    11081112        echo "Error: recipe $recipe does not exist." >&2 
    11091113        exit 1 
    11101114    fi 
     1115 
    11111116    cat "$(conf_recipe_dir)/${recipe}" 
    11121117} 
  • branches/confman-1.9/confmandoc.sh

    r481 r482  
    501501Usage: 
    502502  $MYNAME recipe [ get | list ] 
     503  $MYNAME recipe print [ recipe_name ] 
    503504  $MYNAME recipe set recipe_name 
    504505  $MYNAME recipe [ create | edit | remove ] [ -F file | -m msg ] recipe_name 
     
    508509    create      Create a recipe with the given name 
    509510    edit        Edit a recipe with the given name 
    510     get         Print the host's recipe 
     511    get         List the host's recipe 
    511512    list        List all recipes 
    512     print       Print the given recipe 
     513    print       Print the given recipe (defaults to this host's recipe) 
    513514    remove      Delete a recipe with the given name 
    514515    set         Set the host's recipe to the given name 
Note: See TracChangeset for help on using the changeset viewer.