Code Monkey home page Code Monkey logo

Comments (2)

fluffels avatar fluffels commented on June 19, 2024

@miguelmich you're happy with the command itself on the #6 ? it's just the implementation you don't like?

from jira-cli.

miguelmich avatar miguelmich commented on June 19, 2024

@fluffels yes, I think there is a better way to handle multiple accounts, the main idea that I have in mind is to save an array of the current credentials object and then it will be easy to "activate" one of those instances like, for example, jira config switch and then display a prompt with the current options.

Apart from this, the implementation that you did looks good, but it should be located in a method inside the config class and not inside the jira.js class which acts like some kind of "command router" between the commander index and the different classes.

The roadmap in order to make this new feature works could be:

  1. Add a command to setup multiple accounts using the current config file, and set an "active" parameter which determinates the active instance
  2. Modify the current init method in order to get the "active" instance and load it from the start
  3. Add config commands to modify & remove the different instances

from jira-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.