123456789101112131415161718192021222324252627282930313233343536373839404142 |
- #!/bin/bash
-
- . <(ffoom init)
-
- ffoo import core
-
-
- usage() {
- usage_is "[-I|--include module] [--] function [args...]"
- }
-
- includes=""
- FFOO_DEBUG=false
-
- while true; do
- case $1 in
- -d|--debug)
- FFOO_DEBUG=true
- shift 1
- ;;
- -I|--include)
- includes=$includes:$2
- shift 2
- ;;
- "")
- usage
- ;;
- --)
- shift 1
- break
- ;;
- *)
- break;
- ;;
- esac;
- done
-
- for i in $(tr ":" " " <<<"$includes"); do
- ffoo import $i
- done
-
- "$@"
|