Working Saturnin-based meta-command

saturnin_demo_greet.sh 338B

123456789101112131415161718192021
  1. #!/bin/bash
  2. shellfu import pretty
  3. saturnin_demo_greet__world() {
  4. #
  5. # Greet the world
  6. #
  7. think "greeting the world"
  8. echos "Hello, world!"
  9. }
  10. saturnin_demo_greet__user() {
  11. #
  12. # Greet user $1 or $USER
  13. #
  14. local user=${1:-$USER}
  15. debug -v user
  16. think "greeting user: $user"
  17. echos "Hello, $user!"
  18. }