3719 Commits

Author SHA1 Message Date
Tomas Kral
799af98f22 Merge pull request #186 from kadel/fix-release-automation2
fix release automation
2018-03-07 13:13:03 +01:00
Tomas Kral
63ea02e6e3 fix release automation 2018-03-06 12:36:10 +01:00
Shubham
01bb35c219 Merge pull request #184 from kadel/fix-release-automation
'v' was added to version number
v0.0.2
2018-03-06 15:07:33 +05:30
Tomas Kral
63708b5223 'v' was added to version number 2018-03-06 10:36:09 +01:00
Tomas Kral
d0b65913c1 Merge pull request #182 from kadel/v0.0.2
prepare for v0.0.2 release
2018-03-06 10:22:48 +01:00
Tomas Kral
d33a4ca098 prepare v0.0.2 release 2018-03-06 08:43:20 +01:00
Tomas Kral
15015e014c add bump-version.sh script and update contributing.md
bump-version.sh is there to make it easier to changes version number when doing release.
It upates version number in README.md, cmd/version.go and install.sh.
2018-03-06 08:39:16 +01:00
Tomas Kral
1a7d96457e Merge pull request #144 from containscafeine/add-getting-started
Add Getting Started guide
2018-03-05 15:48:10 +01:00
Shubham
cd7d0588ea Merge pull request #179 from containscafeine/fix-application-dne
Fix application create error
2018-03-05 19:46:42 +05:30
Shubham Minglani
08355477d6 Add Getting Started guide
This commit adds a Getting Started guide for making it easier for
new users to get onboarded. Also updates the references in
README.md to point to the guide.
2018-03-05 19:46:00 +05:30
Shubham Minglani
b12a8436a5 Fix application create error
This commit moves the logic of checking if an application exists
outside of SetCurrent()
2018-03-05 19:38:46 +05:30
Tomas Kral
0b6c00f510 Merge pull request #141 from kadel/reorganize-commands
update commands structure to match it to what is in use cases
2018-03-05 12:28:05 +01:00
Shubham
1e028766a8 Merge pull request #133 from kadel/improve-README
README cleanup - splitting installation guide
2018-03-05 16:54:07 +05:30
Tomas Kral
1768f54a06 cleanup installation instruction in readme
Move instructions on how to manualy install ocdev repositories and
packages to docs/advanced-installation-guide.md
2018-03-05 12:22:18 +01:00
Tomas Kral
c8aa6037cf add 'ocdev create' as an alias for 'ocdev component create' 2018-03-05 12:19:50 +01:00
Tomas Kral
1bc724d2f0 'ocdev app' and 'ocdev component' shows current app/component
'ocdev application' is the same as 'ocdev application get'
'ocdev component' is the same as 'ocdev component get'
2018-03-05 12:19:50 +01:00
Tomas Kral
39aca08fe2 change all os.Exit(-1) to os.Exit(1)
exit code should be between 0-255
2018-03-05 12:19:50 +01:00
Tomas Kral
fe388a3a0f change 'component push' to 'push'
Push is now a root level command as specified in use cases.
fixes #86
2018-03-05 12:19:43 +01:00
Tomas Kral
c3f7295d00 Merge pull request #128 from kadel/app-component-switching
Allow setting active application and component
2018-03-05 11:14:59 +01:00
Tomas Kral
9055446fbc check if application exists before switching to it 2018-03-05 11:05:30 +01:00
Tomas Kral
acc6531499 Allow setting active application and componenet 2018-03-02 16:51:37 +01:00
Shubham
96f2b76ed9 Merge pull request #138 from kadel/fix-push
fix missing component name when calling push
2018-03-02 20:54:12 +05:30
Shubham
0ac9f04c24 Merge pull request #126 from kadel/unset-after-delete
'deactivate' component after it is deleted
2018-03-02 20:07:58 +05:30
Tomas Kral
b0dd37cdad fix missing component name when calling push 2018-03-02 08:56:22 +01:00
Tomas Kral
1089dfcc03 Merge pull request #136 from kadel/fix-crate-component
Add back 'ocde component create' command
2018-03-01 12:49:43 +01:00
Tomas Kral
21f4044bd2 Add back 'ocdev component create' command
It was removed by mistake when refactoring cobra variables :-(
2018-03-01 12:40:55 +01:00
Tomas Kral
4022170333 Merge pull request #135 from containscafeine/fix-notify
Fix nil pointer dereference
2018-03-01 11:01:53 +01:00
Shubham
e2abeba5c4 Merge pull request #131 from kadel/remove-copyright-header
remove copyright header from files
2018-03-01 14:58:25 +05:30
Shubham
068bbb23b8 Merge pull request #132 from kadel/cleanup-cobra-variable-names
Cleanup cobra names.
2018-03-01 14:57:51 +05:30
Shubham Minglani
e11667d255 Fix nil pointer dereference 2018-03-01 14:56:00 +05:30
Tomas Kral
a3b39fe288 fix copyright in LICENCE file 2018-02-28 14:27:04 +01:00
Tomas Kral
66a05dde56 Cleanup cobra names.
Use the same naming pattern for all cobra commands variables.
The patter is camel-cased <root command name><subcommand name>Cmd. Example 'applicationListCmd'.
2018-02-28 13:58:33 +01:00
Tomas Kral
2fe2d36cd5 remove copyright header from files
We have (incomplete) copyright header in 5 files.
Removing it will at least make it consistent. If in future there is a
need to have it in files, we will add it to every file we have created.

There is also root LICENCE file, that is indicating what licence this
project is under.
2018-02-28 13:35:18 +01:00
Tomas Kral
b697d68ee2 Merge pull request #129 from containscafeine/optimize-update-checker
Get latest release info in a non-blocking manner
2018-02-28 11:00:20 +01:00
Shubham Minglani
12a386ce93 Get latest release info in a non-blocking manner
Prior to this commit, the latest release information was fetched
from GitHub in a blocking manner, which means that even for a very
quick command like `ocdev version`, the tool would wait for a few
seconds before outputting the version, because the execution would
be blocked on waiting for the response from GitHub APIs.

This commit changes that and makes the request to GitHub
concurrent and non-blocking. This means that if the request has
not completed but the program execution has ended, then the tool
will exit gracefully without waiting for the request to complete.

However, if the program execution took longer than the request and
the response has been received by the goroutine before the program
execution is over, then, if applicable, the information is
printed.

Fixes #122
2018-02-28 11:55:58 +05:30
Shubham
e6a0d85eff Merge pull request #117 from containscafeine/add-install-script
Add installation script to ocdev
2018-02-26 15:03:05 +05:30
Tomas Kral
63a5282682 add tests for install.sh script 2018-02-26 10:17:58 +01:00
Shubham
b2b7235877 Merge pull request #121 from kadel/multiple-empty-apps
Show all empty applications in app list
2018-02-26 14:47:12 +05:30
Tomas Kral
098cee5fd8 a few improvements for install.sh script
- fix it on macos
- add version variable
- curl as pre-requisite for ubuntu/debian
- update release process docs regarding install script update
- update readme - use bash instead of sh
- download to temporary directory
2018-02-26 10:16:19 +01:00
Tomas Kral
b5d5cf19f3 Save every application that is created to config
This is the only way how we can make sure that we show all aplications
that user has created (even all the empty ones).
This commit also adds 'application delete'
2018-02-26 10:10:01 +01:00
Tomas Kral
41b5c030b1 'deactivate' component after it is deleted 2018-02-26 10:05:54 +01:00
Shubham Minglani
5e8b6a9ace Add installation script to ocdev
This commit adds an installation shell script to install ocdev
on Linux or macOS machines.

Adds docs.
2018-02-22 22:01:26 +05:30
Shubham
d89dc416d0 Merge pull request #120 from containscafeine/notify-update
Update user if newer release available
2018-02-22 16:32:38 +05:30
Shubham Minglani
24e4e34aa3 Update user if newer release available
This commit notifies the user if a newer ocdev release is available
than the release that they have installed right now.

If there is an error getting the new release, the error is ignored
but logged, because this should not block program execution.
2018-02-22 11:59:24 +05:30
Shubham
5ab15e036d Merge pull request #119 from budhrg/master
Fixed macOS text
2018-02-21 20:35:19 +05:30
Shubham Minglani
4a879802b2 Change VERSION to v0.0.1
This commit changes the VERSION that is reflected in `ocdev version`
to v0.0.1 which is in sync with our release versions on GitHub as
well as the rest of the Kubernetes, OpenShift ecosystem.
2018-02-21 20:29:45 +05:30
Shubham Minglani
083870dc0b vendor add: google/go-github and blang/semver
This commit updates vendor/ to bundle in the following
dependencies:
- github.com/google/go-github
- github.com/blang/semver
2018-02-21 20:27:46 +05:30
Budh Ram Gurung
9ada83e61e Fixed macOS text
From 2016, Apple is branding its OS as macOS. 
See https://en.wikipedia.org/wiki/MacOS.
2018-02-21 20:21:31 +05:30
Tomas Kral
dc35c7676d Merge pull request #114 from kadel/fix-readme-install
fix few typos and copy/paster errors in README.md
2018-02-20 11:34:19 +01:00
Tomas Kral
b3a43d400a fix few typos and copy/paster errors in README.md 2018-02-20 11:01:51 +01:00