Code Monkey home page Code Monkey logo

Comments (17)

gadkins avatar gadkins commented on September 17, 2024
  1. Update the CLI docs link for help commands:
DESCRIPTION
       ...

       For more information on configuration options, see:
       https://github.com/UffizziCloud/uffizzi_cli
  1. Replace this error:
~ # uffizzi config list
No such file or directory @ rb_sysopen - /root/.config/uffizzi/config_default.json` 

with:

~ # uffizzi config list
Configuration file not found: /root/.config/uffizzi/config_default.json
To configure the uffizzi CLI interactively, run $ uffizzi config
  1. Rename config_default.json to config_default (Note: the format is not JSON, so don’t give it a .json extension)

  2. When interactively setting up their config_default via $ uffizzi config command, the user can enter a project name that does not exist, for example "My Project". But when they then run$ uffizzi login, we currently do not warn the user that "My Project" does not exist. We should handle this with a warning:

Project "My Test Project" does not exist. Select one of the following projects or create a new project:
> default
  Foo
  Bar
  Baz
  Create a new project

The user should be able to use the arrow keys + Enter to select the default project. If the user choose to Create a new project, ask for the project name interactively:

Project "My Test Project" does not exist. Select one of the following projects or create a new project:
  default
  Foo
  Bar
  Baz
> Create a new project: Lorem Ipsum
  1. If user does not enter a project name (either in config_default or when configuring the CLI interactively), use β€œdefault” as default project context:
Configure the default properties that will be used to authenticate with your                       
Uffizzi API service and manage previews.
Server:  (app.uffizzi.com) https://tmp-eks-2022-04.uffizzi.com/
Username:  [email protected]
Project: 
  1. After logging out with $ uffizzi logout the config_default.json file is deleted. This file should persist.

  2. It would be nice to have some basic utilities in the uffizzi/cli container image, such as vim, etc. We should build the uffizzi/cli container image from ubuntu or similar instead of alpine. @axisofentropy may have an opinion on this.

from uffizzi_cli.

moklidia avatar moklidia commented on September 17, 2024

Related backend updates - UffizziCloud/uffizzi#102

from uffizzi_cli.

moklidia avatar moklidia commented on September 17, 2024

@NealArw Added automatic slug generation and prompting as as default option

from uffizzi_cli.

NealArw avatar NealArw commented on September 17, 2024

πŸ‘‰ Point 1 from #75 (comment). FAILED

The link should be updated for all help commands

image

from uffizzi_cli.

NealArw avatar NealArw commented on September 17, 2024

πŸ‘‰ Point 2 from #75 (comment). FAILED
If there is no config_default file and user was not log in, every command returns an error:
image

from uffizzi_cli.

NealArw avatar NealArw commented on September 17, 2024

πŸ‘‰ Point 4 from #75 (comment). FAILED

1.

  • Create a config file with a project that does not exist
  • Login
  • In interactively mode select Create new project
  • Enter the name that already exists
  • Continue

Result:

  • Error Name already exists
  • User successfully logged in

Expected:

  • Error Project with name NAME already exists. Please run $ uffizzi config to set it as a default project.

from uffizzi_cli.

NealArw avatar NealArw commented on September 17, 2024

πŸ‘‰ Point 6 from #75 (comment). FAILED

Config file was not deleted after command uffizzi logout. But commands uffizzi login and uffizzi config...(list, etc) do not use existed config file.

from uffizzi_cli.

NealArw avatar NealArw commented on September 17, 2024

Point 3 and 5 from #75 (comment) - OK

from uffizzi_cli.

moklidia avatar moklidia commented on September 17, 2024

All points fixed

from uffizzi_cli.

NealArw avatar NealArw commented on September 17, 2024

#75 (comment)

πŸ‘‰ Point 1 from #75 (comment). FAILED

Also needs to update link in help for all commands.

image

from uffizzi_cli.

NealArw avatar NealArw commented on September 17, 2024

Was not fixed #75 (comment)

image

from uffizzi_cli.

NealArw avatar NealArw commented on September 17, 2024

πŸ‘‰ Also needs to update help for the next commands:

  • uffizzi project delete
  • uffizzi project describe
  • uffizzi project set-default

Replace https://docs.uffizzi.com/cli by https://github.com/UffizziCloud/uffizzi_cli

from uffizzi_cli.

NealArw avatar NealArw commented on September 17, 2024

Point 2 TESTED - OK
#75 (comment)

bash-5.1# bundle exec uffizzi login
Login to Uffizzi to view and manage your previews.
Server:  http://web:7000
Username:  [email protected]
bash-5.1# bundle exec uffizzi project list
default

from uffizzi_cli.

NealArw avatar NealArw commented on September 17, 2024

Point 4 TESTED - OK
#75 (comment)

bash-5.1# bundle exec uffizzi login
Login to Uffizzi to view and manage your previews.
Project 'blabla' does not exist. Select one of the following projects or create a new project: Create a new project
Project name:  default
Project slug:  default
Project desciption:
Project with name default already exists. Please run $ uffizzi config to set it as a default project

from uffizzi_cli.

NealArw avatar NealArw commented on September 17, 2024

Point 6 TESTED - OK
#75 (comment)

from uffizzi_cli.

NealArw avatar NealArw commented on September 17, 2024

Point 1 TESTED - OK
#75 (comment)

from uffizzi_cli.

AnnaPochepina avatar AnnaPochepina commented on September 17, 2024

verified in production

#116

from uffizzi_cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.