Giter Site home page Giter Site logo

add configuration command about jira-helper HOT 5 CLOSED

cedrata avatar cedrata commented on July 20, 2024
add configuration command

from jira-helper.

Comments (5)

kadinsayani avatar kadinsayani commented on July 20, 2024

Hi, I'm interested in working on this issue. To clarify, by add a profile do you mean add a user? I don't see a profile endpoint in the api spec.

from jira-helper.

cedrata avatar cedrata commented on July 20, 2024

Hi @kadinsayani, thank you for the interest, I wasn't expecting to have someone interested in it!

So, what I mean is to have a configuration file structured like the following one:

[profile1]
token=foo
host=bar.com

[profile2]
token=baz
host=roo.com

It is not a feature of the Jira REST API itself but it would be something client side to handle a situation where you, developer, are jumping around multiple projects and to avoid changing all the time the configuration file or providing every time the different credentials you can use a flag --profile and select the host and token from one of the different profiles saved inside the configuration file.

The behaviour would be similar to the AWS CLI configuration file, you can take a look on how it works here

As written in the issue a user should be able to add, update and delete a profile, a default profile can be available and if no profile is specified then the default one should be used.

The command could be structured as:

$ jira-helper configure # create a new profile, edit a specific profile or the default one
$ jira-helper delete # delete the given profile 

So a new subcommand inside of cmd/root.go could be added and a new directory named cmd/configure can also be added with two file configure.go and delete.go to manage the two sub commands.

You can take inspiration from the already available commands and subcommands.

I hope this clarify the expected behaviour of the feature.
Have fun!🦄

from jira-helper.

kadinsayani avatar kadinsayani commented on July 20, 2024

Thanks for the clarification! Can you please assign the issue to me?

from jira-helper.

cedrata avatar cedrata commented on July 20, 2024

Hi @kadinsayani I can see your pull request, I will review it as soon as possible unfortunately this week turns out busier than expected. I hope you can understand!

from jira-helper.

kadinsayani avatar kadinsayani commented on July 20, 2024

No worries :)

from jira-helper.

Related Issues (16)

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.