As answered in ddev exec: command not found (.bash_aliases) shell scripts in .ddev/commands/web
are fantastic.
Is it also possible to call a command from another one? Like
#!/bin/bash
# pull prod content to local
dump_remote_database
sync_down_files
import_database
Which would (theoretically) call three separate commands defined in . ddev/commands/web
Currently I get
/mnt/ddev_config/commands/web/sync_down: line 5: dump_remote_database: command not found
/mnt/ddev_config/commands/web/sync_down: line 6: sync_down_files: command not found
/mnt/ddev_config/commands/web/sync_down: line 7: import_database: command not found