lib/pcli/services/commands/user/change.rb in pcli-0.1.0 vs lib/pcli/services/commands/user/change.rb in pcli-0.1.1
- old
+ new
@@ -31,9 +31,10 @@
option :all, type: :boolean, default: false, desc: 'Change all fields'
def call(all:, **args)
field_args = args.slice(*self.class.field_options)
+ spinner = nil
response = api_manager.ensure_authenticated do
spinner = SimpleSpinnerBar.start('Retrieving user...', output)
r = api.me
if r.failure?
spinner.failure