~singpolyma/sgx-jmp

ref: bbc0bb6a11c1d459a1511e88bd80997d158e2603 sgx-jmp/lib/command_list.rb -rw-r--r-- 1.4 KiB
Refactor command list to use composition

Also rename buy credit to top up
Command to get to the credit card settings page
Rename buy-credit to buy credit
Merge branch 'conditionally-show-commands'

* conditionally-show-commands:
  Only show buy credit option if customer has a plan and a credit card
  Show commands conditionally (plus add voicemail record command)
Only show buy credit option if customer has a plan and a credit card
Show commands conditionally (plus add voicemail record command)

Refactor to a factory that allows commands to be shown conditionally, so that
the voicemail record command can only be shown if the customer has a forwarding
target set up.