cartridge-cli icon indicating copy to clipboard operation
cartridge-cli copied to clipboard

Ability to redirect output and return arbitrary exit codes in admin procedures

Open denesterov opened this issue 3 years ago • 0 comments

There are many use-cases to use cartridge admin for some automation: gather lists of specific records or wait for some condition. e.g.

./cartridge admin -c CREDS migration_results | grep Subscriber > subs.csv

or

./cartridge admin -c CREDS get_migration_status

if [ $? -eq 0 ] 
then 
  echo "Migration finished" 
else 
  echo "Failed" 
fi

denesterov avatar Dec 28 '21 15:12 denesterov