Code Monkey home page Code Monkey logo

Comments (6)

coryb avatar coryb commented on September 18, 2024

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.

coryb avatar coryb commented on September 18, 2024

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.

mikepea avatar mikepea commented on September 18, 2024

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.

coryb avatar coryb commented on September 18, 2024

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.

mikepea avatar mikepea commented on September 18, 2024

Created #22 to address my needs here.

from jira.

mikepea avatar mikepea commented on September 18, 2024

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)

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.