~singpolyma/sgx-jmp

e292f2088e23f4284ee3d20006b1b0ab20cb9abe β€” Stephen Paul Weber 7 days ago 24b079a + 4c70ba8
Merge branch 'command-icons'

* command-icons:
  Add emoji icons for each command
1 files changed, 14 insertions(+), 14 deletions(-)

M sgx_jmp.rb
M sgx_jmp.rb => sgx_jmp.rb +14 -14
@@ 468,7 468,7 @@ Command.new(

Command.new(
	"info",
	"Show Account Info",
	"πŸ‘€ Show Account Info",
	list_for: ->(*) { true },
	customer_repo: CustomerRepo.new(sgx_repo: Bwmsgsv2Repo.new)
) {


@@ 481,7 481,7 @@ Command.new(

Command.new(
	"usage",
	"Show Monthly Usage"
	"πŸ“Š Show Monthly Usage"
) {
	report_for = (Date.today..(Date.today << 1))



@@ 496,7 496,7 @@ Command.new(

Command.new(
	"transactions",
	"Show Transactions",
	"🧾 Show Transactions",
	list_for: ->(customer:, **) { !!customer&.currency }
) {
	Command.customer.then(&:transactions).then do |txs|


@@ 508,7 508,7 @@ Command.new(

Command.new(
	"configure calls",
	"Configure Calls",
	"πŸ“ž Configure Calls",
	customer_repo: CustomerRepo.new(sgx_repo: Bwmsgsv2Repo.new)
) {
	Command.customer.then do |customer|


@@ 526,7 526,7 @@ Command.new(

Command.new(
	"ogm",
	"Record Voicemail Greeting",
	"⏺️ Record Voicemail Greeting",
	list_for: ->(fwd: nil, **) { fwd&.voicemail_enabled? },
	customer_repo: CustomerRepo.new(sgx_repo: Bwmsgsv2Repo.new)
) {


@@ 543,7 543,7 @@ Command.new(

Command.new(
	"migrate billing",
	"Switch from PayPal or expired trial to new billing",
	"🏦 Switch to new billing",
	list_for: ->(tel:, customer:, **) { tel && !customer&.currency },
	customer_repo: CustomerRepo.new(sgx_repo: Bwmsgsv2Repo.new)
) {


@@ 572,7 572,7 @@ Command.new(

Command.new(
	"credit cards",
	"Credit Card Settings and Management"
	"πŸ’³ Credit Card Settings and Management"
) {
	Command.customer.then do |customer|
		url = CONFIG[:credit_card_url].call(


@@ 590,7 590,7 @@ Command.new(

Command.new(
	"top up",
	"Buy Account Credit by Credit Card",
	"πŸ’² Buy Account Credit by Credit Card",
	list_for: ->(payment_methods: [], **) { !payment_methods.empty? },
	format_error: ->(e) { "Failed to buy credit, system said: #{e.message}" }
) {


@@ 614,7 614,7 @@ Command.new(

Command.new(
	"alt top up",
	"Buy Account Credit by Bitcoin, Mail, or Interac e-Transfer",
	"πŸͺ™ Buy Account Credit by Bitcoin, Mail, or Interac e-Transfer",
	list_for: ->(customer:, **) { !!customer&.currency }
) {
	Command.customer.then { |customer|


@@ 631,7 631,7 @@ Command.new(

Command.new(
	"plan settings",
	"Manage your plan, including overage limits",
	"πŸ“ Manage your plan, including overage limits",
	list_for: ->(customer:, **) { !!customer&.currency }
) {
	Command.customer.then do |customer|


@@ 649,7 649,7 @@ Command.new(

Command.new(
	"referral codes",
	"Refer a friend for free credit"
	"πŸ‘₯ Refer a friend for free credit"
) {
	Command.customer.then(&:unused_invites).then do |invites|
		if invites.empty?


@@ 674,7 674,7 @@ Command.new(

Command.new(
	"sims",
	"(e)SIM Details",
	"πŸ“Ά (e)SIM Details",
	list_for: ->(customer:, **) { CONFIG[:keepgo] && !!customer&.currency }
) {
	Command.customer.then(&SIMRepo.new.method(:owned_by)).then do |sims|


@@ 695,7 695,7 @@ Command.new(

Command.new(
	"reset sip account",
	"Create or Reset SIP Account",
	"☎️ Create or Reset SIP Account",
	customer_repo: CustomerRepo.new(sgx_repo: Bwmsgsv2Repo.new)
) {
	Command.customer.then do |customer|


@@ 724,7 724,7 @@ Command.new(

Command.new(
	"lnp",
	"Port in your number from another carrier",
	"#️⃣ Port in your number from another carrier",
	list_for: ->(**) { true }
) {
	EMPromise.all([