Skip to content

Conversation

@the38th
Copy link
Contributor

@the38th the38th commented Sep 6, 2022

No description provided.

@the38th the38th linked an issue Sep 6, 2022 that may be closed by this pull request
desc 'login [OPTIONS]', 'Login to Uffizzi to view and manage your previews'
method_option :server, required: false, aliases: '-s'
method_option :username, required: false, aliases: '-u'
method_option :silent, required: false, type: :boolean
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can use class_option:

module Uffizzi
  class Cli < Thor
    class_option :project, type: :string
    class_option :silent, type: :bool

end

def handle_set_command(property, value)
Uffizzi.ui.disable_stdout if @options[:silent]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like we should hide this functionality in Uffizzi.ui.say

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants