Commit Graph

3711 Commits

Author SHA1 Message Date
Shubham
5f90cad09c Merge pull request #49 from containscafeine/fix-go-fmt
Fix go fmt error
2018-02-07 12:20:02 +05:30
Shubham Minglani
db9835d2b3 Fix go fmt error 2018-02-07 12:19:09 +05:30
Shubham Minglani
6c4e9a1c58 Fix flaky test due to map to string operation
This is a very poor fix for the flaky test, but I think this should
work for now. The test was "occasionally" failing because the order
in a map is not maintained, so the conversion to string was failing
at times. This commit fixes that.
2018-02-07 12:12:36 +05:30
Shubham
a23d2af5e6 Merge pull request #47 from containscafeine/refactor-component
Refactor component to fix errors
2018-02-06 21:50:28 +05:30
Shubham Minglani
f6473ceed0 Refactor component to fix errors
This commit refactors the `ocdev component` parts to better print,
and also fixes the error when `ocdev component get` will not return
an error when no component is set
2018-02-06 21:48:18 +05:30
Shubham
8af99122b2 Merge pull request #46 from containscafeine/change-deleted
Change deleted to deleting
2018-02-06 18:42:24 +05:30
Shubham Minglani
06c22c6f42 Change deleted to deleting
When doing `oc delete project`, the project is not immediately
deleted, while the command returns a 0 exit code immediately.

For this reason, this commit changes the word "deleted" to
"deleting" so the end user does not get confused when running
`ocdev application list` after `ocdev application delete`
2018-02-06 18:40:05 +05:30
Shubham
fa39e829e0 Merge pull request #44 from containscafeine/rename-app.go
Rename cmd/app.go to cmd/application.go for consistency
2018-02-06 18:37:16 +05:30
Shubham Minglani
07135d7ffb Rename cmd/app.go to cmd/application.go for consistency 2018-02-06 18:36:07 +05:30
Shubham
43cee4b4fe Merge pull request #45 from containscafeine/modify-create-logic
Modify application create behavior
2018-02-06 18:35:18 +05:30
Shubham
b5ec0a21d8 Merge pull request #42 from containscafeine/refactor-delete-output
Make `application delete` throw pretty errors
2018-02-06 18:34:39 +05:30
Shubham
7bf896b6dc Merge pull request #43 from containscafeine/add-newline
Newline at the end of output
2018-02-06 18:33:34 +05:30
Shubham Minglani
f2bac3c3e5 Modify application create behavior
This commit moves the setting defaultApplication logic from
pkg/application/application.go to cmd/app.go. Also, pretty prints
the log messages now.
2018-02-06 18:31:42 +05:30
Shubham Minglani
2fefdd07bd Newline at the end of output 2018-02-06 18:07:40 +05:30
Shubham Minglani
ec2e41e73c Make application delete throw pretty errors
This commit makes application delete throw better error.
Also, removed logging and switched to printing.
2018-02-06 18:05:44 +05:30
Shubham
beddba36bb Merge pull request #32 from containscafeine/implement-application-delete
implement `ocdev application delete`
2018-02-06 12:31:41 +05:30
Shubham Minglani
754ca24948 implement ocdev application delete 2018-02-06 12:31:18 +05:30
Shubham
0c564d42e5 Merge pull request #33 from containscafeine/implement-application-list
implement `ocdev application list`
2018-02-06 12:27:52 +05:30
Shubham Minglani
b04213c71c implement ocdev application list 2018-02-06 12:22:43 +05:30
Shubham
6bf64ba610 Merge pull request #37 from containscafeine/handle-errors-component
Handle a couple of unhandled errors
2018-02-06 12:17:41 +05:30
Shubham Minglani
209435e111 Handle a couple of unhandled errors 2018-02-06 12:06:52 +05:30
Tomas Kral
d668716fc7 Component create and delete (#18)
Implement `oc component`
2018-02-06 12:03:46 +05:30
Tomas Kral
23d1de793f Merge pull request #31 from containscafeine/implement-application-get
add short flag for `application get`
2018-02-05 19:28:18 +01:00
Tomas Kral
706c3bf838 Merge pull request #34 from kadel/fixBuild
remove unused reflect from config pkg
2018-02-05 19:18:51 +01:00
Tomas Kral
fb126ea50b remove unused reflect from config pkg 2018-02-05 19:10:27 +01:00
Shubham Minglani
bd46173da1 add short flag for application get
This commit implements a `-q` flag for `application get` which
returns only the application name.
2018-02-05 18:26:16 +05:30
Shubham
bdd0e1a548 Merge pull request #30 from containscafeine/tie-application-with-project
make applications tied to OpenShift projects
2018-02-05 18:12:37 +05:30
Shubham Minglani
b10abbca1d implement ocdev appliction get
This commit introduces the `ocdev application get` command which
returns the current active application.
2018-02-05 17:53:03 +05:30
Shubham Minglani
f7ceac9f6f make applications tied to OpenShift projects
This commit ties one application to one OpenShift project.
2018-02-05 17:46:56 +05:30
Tomas Kral
997998d847 Merge pull request #20 from containscafeine/application-create
app application create
2018-02-02 13:21:41 +01:00
Shubham Minglani
3cd28f119c Implement application create
This commit implements "ocdev application create" which creates
an application and binds it to the current project.
2018-02-02 17:34:30 +05:30
Tomas Kral
c621c5a411 Merge pull request #22 from containscafeine/refactor-occlient
Modify occlient structure
2018-02-02 12:50:16 +01:00
Tomas Kral
19f735cc07 Merge pull request #21 from containscafeine/refactor-config
Add config package
2018-02-02 12:20:18 +01:00
Shubham
5c113a85a1 Merge pull request #17 from kadel/fixBintray
Fix bintray uploading and add info to readme
2018-02-02 15:34:54 +05:30
Shubham Minglani
91d4d0e9cf Modify occlient structure
This commit modifies occlinet.go file to accept type OcClient as
input. Also adds a utility function to check for the current
project been set by the user.
2018-02-02 15:24:55 +05:30
Shubham Minglani
7fbd7a2bcf Add config package
This commit adds the config package which has all the methods
related to storing and retrieving ocdev configuration from disk.
Also adds some utility functions for the same.
2018-02-02 15:22:23 +05:30
Shubham Minglani
40d75908ce Update vendor: ghodds/yaml, pkg/errors
This commit updates the vendor/ directory using `dep ensure` to
add the ghodds/yaml and pkg/errors packages to be used in the
config package.
2018-02-02 15:21:25 +05:30
Shubham
a99403b1f5 Merge pull request #19 from kadel/updateOcClient
Update oc client
2018-02-02 10:40:41 +05:30
Shubham
1818aab681 Merge pull request #16 from redhat-developer/fixCodecovBadge
Fix codecov.io badge in readme
2018-02-01 18:29:31 +05:30
Tomas Kral
366586e89f occlient - look for oc binary automaticaly 2018-02-01 13:58:42 +01:00
Tomas Kral
ed0a1d59e9 vendor: add github.com/sirupsen/logrus 2018-02-01 13:28:54 +01:00
Tomas Kral
64281bbfa3 update readme with links to binaries in bintray 2018-01-31 18:22:14 +01:00
Tomas Kral
104f2c0028 fix cross compilation and bintray uploading 2018-01-31 18:22:14 +01:00
Tomas Kral
16aa02ecde Fix codecov.io badge in readme 2018-01-31 17:21:55 +01:00
Shubham
0fcad79944 Merge pull request #11 from kadel/buildMaster
automatically build master branch and upload to bintray
2018-01-31 21:10:13 +05:30
Shubham
8d65227c50 Merge pull request #13 from kadel/ocClient
[Work In Progress] First take on OcClient
2018-01-31 21:08:50 +05:30
Tomas Kral
f3fcf0e9a6 build master branch and upload to bintray 2018-01-31 15:11:26 +01:00
Tomas Kral
1b72e27ea7 create pkg/occliet
this is wrapper around oc command
use NewOcClient to create new OcClient instance
2018-01-31 15:10:52 +01:00
Shubham
c5e3589774 Merge pull request #10 from kadel/addCodecov
add codecov.io
2018-01-31 19:19:55 +05:30
Tomas Kral
ae63e1ad11 add codecov.io 2018-01-31 14:45:49 +01:00