rsteube / go-jira-cli Goto Github PK
View Code? Open in Web Editor NEWsimple jira command line client
License: MIT License
simple jira command line client
License: MIT License
When I try to get the project list gj fails with a segmentation violation using the current 1.11 release:
❯ gj project --host mycompany.atlassian.net/jira
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x754645]
goroutine 1 [running]:
github.com/rsteube/go-jira-cli/internal/api.ListProjects({0x7ffc29591126, 0xbee71c}, {0x21c1f60, 0x0, 0x6000106})
/home/runner/work/go-jira-cli/go-jira-cli/internal/api/project.go:30 +0x85
github.com/rsteube/go-jira-cli/cmd/gj/cmd.glob..func15(0xc00081fdb8, {0x21c1f60, 0x0, 0x0})
/home/runner/work/go-jira-cli/go-jira-cli/cmd/gj/cmd/project_view.go:29 +0xb9
github.com/rsteube/go-jira-cli/cmd/gj/cmd.glob..func14(0x21745a0, {0xbf0026, 0x2, 0x2})
/home/runner/work/go-jira-cli/go-jira-cli/cmd/gj/cmd/project.go:18 +0x33
github.com/spf13/cobra.(*Command).execute(0x21745a0, {0xc000320f60, 0x2, 0x2})
/home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:856 +0x60e
github.com/spf13/cobra.(*Command).ExecuteC(0x2174820)
/home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:974 +0x3bc
github.com/spf13/cobra.(*Command).Execute(...)
/home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:902
github.com/rsteube/go-jira-cli/cmd/gj/cmd.Execute()
/home/runner/work/go-jira-cli/go-jira-cli/cmd/gj/cmd/root.go:22 +0x25
main.main()
/home/runner/work/go-jira-cli/go-jira-cli/cmd/gj/main.go:6 +0x17
Maybe my auth token or host configuration isn't correct? As the issue view fails as well but with a different error message:
gj issue view --host mycompany.atlassian.net/jira
Error: 404 Not Found: <!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible"
content="IE=edge"><title>Oops, you've found a dead link. - JIRA</title><link type='text/css' rel='stylesheet' href='/static-
assets/metal-all.css' media='all'><script src='/static-assets/metal-all.js'></script><!--[if lt IE 9]><link type='text/css' rel='stylesheet'
href='/static-assets/metal-all-ie.css' media='all'><script src='/static-assets/metal-all-ie.js'></script><![endif]--><!--[if IE 9]><link
type='text/css' rel='stylesheet' href='/static-assets/metal-all-ie9.css' media='all'><![endif]--><meta name="decorator" content="none"
/></head><body class=" error-page error404"><script type="text/javascript">document.body.className += " js-enabled";</script>
<div id="page"><header id="header" role="banner"></header><!-- #header --><section id="content" role="main"><div class="aui-
page-panel"><div class="aui-page-panel-inner"><section class="aui-page-panel-content lowerContent"><div id="error-state">
<span class="error-type"></span><h1>Oops, you've found a dead link.</h1><ul><li>Go back to the <a
href="javascript:window.history.back()">previous page</a></li><li>Go to the <a href="/secure/MyJiraHome.jspa">Home Page</a>
</li></ul></div></section><!-- .aui-page-panel-content --></div><!-- .aui-page-panel-inner --></div><!-- .aui-page-panel --></section>
<!-- #content --><footer id="footer" role="contentinfo"><section class="footer-body">
New credentials (auth login
) should be verified with a test call to the api.
causes: #20
pager should be configurable and not hardcoded
similar to how cli does it: https://github.com/cli/cli/blob/trunk/pkg/cmd/config/set/set.go
causes #24
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.