Commit Graph

574 Commits

Author SHA1 Message Date
Navid Shaikh ae0e97ae3f Adds DEVELOPMENT.md (#39)
* Adds DEVELOPMENT.md

 Fixes #26
 Also adds CONTRIBUTING.md which points to knative/docs.

* Links DEVELOPMENT.md with README.md

 - also removes the build steps as those are now part of DEVELOPMENT.md
 - links the install guide to www.knative.dev/docs/install/
 - removes unnecessary GOPATH setup steps
 - removes CONTRIBUTING.md as its linked from README.md now
 - links all references for contribution guide to https://www.knative.dev/contributing/

* Updates the repo fork step and removes unnecessary heading
2019-04-02 10:36:55 -07:00
Kenjiro Nakayama e8ec699d2c Add SilenceUsage option to cobra command (#43)
* Add SilenceUsage option to cobra command

This patch adds `cmd.SilenceUsage` to command to stop usage output
after command validation.

Fixes https://github.com/knative/client/issues/38

* Set cmd.SilenceUsage to global cmd
2019-03-29 12:07:53 -07:00
Kenjiro Nakayama 72ec64390b Fix flag parse error by calling flag.Parse first (#42)
* Fix flag parse error by calling flag.Parse

Fixes https://github.com/knative/client/issues/37

* Fix workaround for parse error
2019-03-29 04:34:53 -07:00
Sam O'Dell a68d11e9b2 Update README.md (#44) 2019-03-29 04:27:53 -07:00
Naomi Seyfer ebbd659e69 go.mod and go.sum updates (#46)
* go.mod and go.sum updates

* Set GO111MODULE=on
2019-03-26 12:41:51 -07:00
Kenjiro Nakayama c07254c46d Support generating bash completion (#31)
* Support generating bash completion

This patch adds subcommand to generate completion script for bash.

As an knative user, we would like to complete subcommands and
options rather than typing them.

* Adds docs about bash auto completion in README.md

This changeset adds auto-completion section in existing README.md

Suggested-by: Navid Shaikh <nshaikh@redhat.com>
2019-03-18 22:31:05 -07:00
Timur Zununbekov be50567b38 Pickup config path from env (#27) 2019-03-14 13:47:08 -07:00
Naomi Seyfer b5b02f64f3
Incorporate reference to knative/test-infra for setting up automated tests. (#34)
* Set up some test infra

* fix gitignore

* More mod gitignore

* Add dummy file that depends on stuff
2019-03-05 16:31:05 -08:00
Navid Shaikh 139db6c4f9 Fixes typo in the kn help command (#24)
s/blokcs/blocks

 and removes few unneeded dots (.)
2019-02-25 14:49:19 -08:00
Tara Gu e6699b9b54 Add service describe (#18) 2019-02-08 14:43:44 -08:00
Charlie Drage be52528d78 Add building documentaiton (#20)
Adds documentation on how to build the project.
2019-02-07 12:04:08 -08:00
Charlie Drage bbde785a6e Add more .gitignore (#21)
Adds more .gitignore caveats
2019-02-05 14:15:03 -08:00
Scott Andrews 855ea20d40 Generate go.sum with go 1.11.5 (#19)
When building with go 1.11.5 I see a hash mismatch for knative/serving.
The algorithm for computing the hash has changed in recent go releases.

To create this PR I ran:
- `rm go.sum`
- `go test ./pkg/...`
- `go build ./cmd/kn`
- `go mod tidy`

All developers should update their version of go and clean their module
cache to flush downloaded modules with an invalid hash.
2019-02-04 16:19:49 -08:00
Nima Kaviani ad636ad789 add revision describe (#15) (#16)
* put the auth libraries in the root command

* add revision describe (#15)

* print the yaml formatted revision by default
* allow for custom formatting to be passed in
2019-02-01 15:23:13 -08:00
Naomi Seyfer 7cc59481bb
Refactor to allow testing; write first tests. (#10)
* Refactor commands to allow insertion of fakes for testing

* Pin client-go to version that matches signatures other libs use

* Add tests for service list

* actually add test file

* Review comments: Fatal instead of Error/return, Split instead of read to newline
2019-01-29 12:40:22 -08:00
Naomi Seyfer 38932b1d61
Get revision and service listing skeletons in. (#2)
* Get revision and service listing skeletons in.

This adds the kn program, with basic commands for service and revision listing
in.

kn service list
kn revision list

They use the genericclioptions library from kubernetes to support jsonpath,
yaml, and json output. The default is to just list the names of the objects, for
now, until we add in some of the kubectl-based libraries for creating tables in
another commit.

This is deliberately bare-bones; I am looking to get the basic skeletons of how
this repository is laid out down.

No tests yet. Soon.

* Move commands to pkg, so cmd only contains minimalist main.go

* RunE instead of Run. The defaults on Cobra command generation are weird.

* Oops forgot to change types of stuff

* Do not panic on bad config file

* Make commands no longer global

* Make configuration initialization not static in the module, but rather triggered by main.go init
2019-01-22 09:03:58 -08:00
Naomi Seyfer f867eb7006
Improve description in README and link to contribution guidelines (#5) 2019-01-14 12:45:17 -08:00
Naomi Seyfer fe75bdb302
Add emacs and project-specific stuff to .gitignore (#4) 2019-01-11 15:48:17 -08:00
Naomi Seyfer bfe011051b
Add OWNERS file, initially with WG leads + evan and matt (#3) 2019-01-10 17:46:31 -08:00
Mark Chmarny 7d7e3abfd6
Delete feature_request.md 2018-12-12 16:58:47 -08:00
Mark Chmarny 2d0411395f
Will replace with Knative templates 2018-12-12 16:58:30 -08:00
Mark Chmarny ea9b6b3333
Default, will replace with Knative templates 2018-12-12 16:58:07 -08:00
Mark Chmarny 27f5731717 Update issue templates
Default templates
2018-12-12 16:47:03 -08:00
Mark Chmarny 7585e47a7a
Initial commit 2018-12-12 16:45:51 -08:00