jszwedko / circleci-cli Goto Github PK
View Code? Open in Web Editor NEWCLI for interacting with CircleCI's API
License: MIT License
CLI for interacting with CircleCI's API
License: MIT License
As mentioned in #4 if you do not have an API token set, you currently get an opaque error message about having to log in. We should catch this and provide an error message telling the user that they need to set -t
or CIRCLE_TOKEN
.
It'd be useful to include bash and zsh autocompletion.
eyal@eyal-Lenovo-Y50-70:~/develop/git/booyah-android$ circleci-cli projects
json: cannot unmarshal string into Go value of type bool
This is AFTER i've set export CIRCLE_TOKEN=my_token
(before that i got 401 u need to loging first which is also bad error message since your cli does not have 'login' command, should be 'please supply API TOKEN either using -t or using CIRCLE_TOKEN environment variable.'
circleci-cli projects
results in
`parsing time "null" as ""2006-01-02T15:04:05Z07:00"": cannot parse "null" as """``
Other commands work fine
panic: interface conversion: interface {} is string, not *string [recovered]
panic: interface conversion: interface {} is string, not *string
github.com/jszwedko/go-circleci/circleci.go:756
the program fails to start with this error message:
json: cannot unmarshal string into Go value of type bool
I am using the 0.2.0-pre binaries.
I am presuming this is because the schema for the CircleCI API changed, but I don't know how to track it down at any lower level.
Panics:
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x40f113]
goroutine 1 [running]:
main.main.func9(0xc8200ba0f0)
/Users/jszwedko/gopath/src/github.com/jszwedko/circleci-cli/main.go:573 +0x6f3
github.com/jszwedko/circleci-cli/vendor/github.com/codegangsta/cli.Command.Run(0x7db910, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x8186e0, 0x13, 0x0, ...)
/Users/jszwedko/gopath/src/github.com/jszwedko/circleci-cli/vendor/github.com/codegangsta/cli/command.go:127 +0x1052
github.com/jszwedko/circleci-cli/vendor/github.com/codegangsta/cli.(*App).Run(0xc8200a4200, 0xc82000a500, 0x2, 0x2, 0x0, 0x0)
/Users/jszwedko/gopath/src/github.com/jszwedko/circleci-cli/vendor/github.com/codegangsta/cli/app.go:159 +0xc2f
main.main()
/Users/jszwedko/gopath/src/github.com/jszwedko/circleci-cli/main.go:697 +0x3545
cc/ @stephenchu
Hi.
If i had -d | --debug
that might:
i could have discovered more easily where the error i get comes from and why...
Maybe integrate with show
?
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.