Changeset 58


Ignore:
Timestamp:
Jan 3, 2012, 2:31:51 PM (12 years ago)
Author:
g7moreau
Message:
  • Add command show
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bundle/bundle.bash

    r56 r58  
    4646         ;;
    4747
     48      show)
     49         pack=$(find ${folder} -type f -a -name "*.${ext}" -print0 2> /dev/null | grep -FzZ "/$2.${ext}" | head -n 1 )
     50         if [ -f "${pack}" ]
     51         then
     52            pod2text ${pack}
     53         else
     54            echo "unable to find bundle file: $2"
     55            echo "Usage: bundle show bundle-file"
     56         fi
     57         ;;
     58
    4859      list)
    4960         if [ ${_bundle_level} > 0 ]
     
    7586
    7687      *)
    77          echo "Usage: bundle list|avail|load|unload|status|source|help"
     88         echo "Usage: bundle list|avail|load|unload|show|status|source|help"
    7889         ;;
    7990   esac
     
    94105=head1 SYNOPSIS
    95106
    96 =head1 SYNOPSIS
    97 
    98107 bundle avail
     108 bundle show bundle-file
    99109
    100110 bundle load bundle-file
Note: See TracChangeset for help on using the changeset viewer.