Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#157] BUG: Render invalid json when preview list #159

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from

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
@@ -19,6 +19,7 @@ def version
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

@@ -78,6 +79,7 @@ def handle_get_command(property)
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.

2 participants