Comments (6)
Hey,
Yeah, I have been meaning to refactor the code a bit to allow it to be used a client library rather than just cli tool. CmdList specifically has been already tweaked to call FindIssues and call a template with the results. The output of most Cmd* funcs are almost entirely controlled with templates, but it probably makes sense to have the jira webservice logic to be in isolated routines and then the Cmd* funcs would just call the appropriate jira webservice routines.
I also want to tweak the layout of the project so that the code can more easily be imported as a golang library. If you want to put together a PR to separate the jira webservice interactions from the template generation logic that would be great. After I can merge that in I will move the code around so that import "github.com/coryb/go-jira"
imports the jira
package. I have done this with a few other projects, but just have not gotten around to go-jira.
Thanks!
-Cory
from jira.
Hey, it might make more sense for me to tweak the layout of the project before you play with refactoring it. I could probably get it done in the next day or so, but if you have already started then it would probably complicate your PR/merge.
-Cory
from jira.
Nope, haven't started yet - prob will start in earnest after Xmas. So yep, if you can knock a branch together that reflects how you'd like it shaped, I can help out :)
On 22 Dec 2015, at 12:17, coryb [email protected] wrote:
Hey, it might make more sense for me to tweak the layout of the project before you play with refactoring it. I could probably get it done in the next day or so, but if you have already started then it would probably complicate your PR/merge.
-Cory
—
Reply to this email directly or view it on GitHub.
from jira.
Okay, I have moved the files around a bit to make it more like a conventional golang import library. You would be able to use import "github.com/Netflix-Skunkworks/go-jira"
and use the jira
package in your golang project. The change is 7268b9e, and pushed to master.
To build it just use make
and/or make clean
. I obviously need to add tests, but have not had a chance yet.
from jira.
Created #22 to address my needs here.
from jira.
Closing this, cos I am using it as a library now!
Shameless plug @coryb -- https://github.com/mikepea/go-jira-ui
from jira.
Related Issues (20)
- "jira list ..." encounters "ERROR Invalid Usage: invalid character '<' looking for beginning of value" HOT 3
- jira view not returning expected field HOT 1
- How to create tasks for boards with custom fields? HOT 1
- 404 using jira create to on-premise Jira Server 9.x HOT 4
- Running tests locally
- Plans for a 1.0.28 soon? HOT 2
- Feature request: Delete issue link
- GJSON / `gjq` doesn't appear to work with query paths
- Config file driven by environment variable
- createmeta issue on jira 9.x - "Issue Does Not Exist" HOT 2
- range in a cell
- stuck parsing jira null values HOT 1
- Multiline Comments? I Must be doing something wrong.
- ERROR Invalid Usage: template: wrong type for value; expected []interface {}; got []string
- Setting .project and other variables
- subtask command throws an Invalid Usage error even though the parent issue exists.
- jira close getting errors
- Support for PAS tokens HOT 1
- git checkout -b
- Zsh completion is not working HOT 1
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.