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 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 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 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 Minglani
754ca24948
implement ocdev application delete
2018-02-06 12:31:18 +05:30
Shubham Minglani
b04213c71c
implement ocdev application list
2018-02-06 12:22:43 +05:30
Tomas Kral
d668716fc7
Component create and delete ( #18 )
...
Implement `oc component`
2018-02-06 12:03:46 +05:30
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 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
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
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
Suraj Narwade
8a33b99056
Added basic project and Cobra CLI structure
2018-01-30 16:17:55 +05:30