Comments (5)
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.
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.
Thanks for the clarification! Can you please assign the issue to me?
from jira-helper.
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.
No worries :)
from jira-helper.
Related Issues (16)
- store summary to file in issues sub command
- issue status update
- file title fix
- add logger HOT 1
- assign issue to user
- panic when no issues available in search
- generalize http call functions (Get & Post)
- add return status
- myself command implementation
- assign issue to a user command
- convert configuration to INI file format
- add exit status status codes
- add license and make it open source
- hide `completion` command
- add description for command acting as groups
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jira-helper.