Geoff Macartney [Thu, 27 Apr 2017 09:45:41 +0000 (10:45 +0100)]
Add check that path is not empty.
This avoids a panic in a case like br catalog add file://test.zip,
if you forget to add the path to the file, file:///some/path/test.zip.
Geoff Macartney [Thu, 27 Apr 2017 09:44:38 +0000 (10:44 +0100)]
Closes #48
Catalog add tweaks
Fixes items noted in #44
Geoff Macartney [Tue, 25 Apr 2017 08:10:14 +0000 (09:10 +0100)]
Closes #47
simpler go CLI project setup and tweaks to instructions for n00bs
Alex Heneveld [Mon, 24 Apr 2017 14:11:22 +0000 (15:11 +0100)]
display nice error if argument is omitted
Alex Heneveld [Mon, 24 Apr 2017 14:06:35 +0000 (15:06 +0100)]
set content type to unknown to use auto-detect when posting to catalog
(prevent reader error if the item is a zip)
Alex Heneveld [Mon, 24 Apr 2017 13:38:36 +0000 (14:38 +0100)]
better error message when server returns an error
we need better error handling; this solves the thing I was wondering, which is where
was the exception coming from.
Alex Heneveld [Mon, 24 Apr 2017 13:02:28 +0000 (14:02 +0100)]
correctly handle file:// urls
Alex Heneveld [Mon, 24 Apr 2017 13:02:20 +0000 (14:02 +0100)]
update description
Alex Heneveld [Mon, 24 Apr 2017 14:12:02 +0000 (15:12 +0100)]
This closes #44
Alex Heneveld [Mon, 24 Apr 2017 12:30:40 +0000 (13:30 +0100)]
code review
Alex Heneveld [Mon, 24 Apr 2017 10:53:50 +0000 (11:53 +0100)]
improve README instructions
- clearer for new users
- the checked-out folder is used (no need for a second copy)
- glide doesn't have to be on the path (it wasn't for me)
- release/build.sh can be used directly
Alex Heneveld [Mon, 24 Apr 2017 10:42:58 +0000 (11:42 +0100)]
set sensible defaults (`.` is not a valid GOPATH)
Geoff Macartney [Wed, 19 Apr 2017 08:38:56 +0000 (09:38 +0100)]
Closes #46
Removed unused class
Fixes broken jenkins builds, introduced by #45 and https://github.com/apache/brooklyn-server/pull/637
Thomas Bouron [Wed, 19 Apr 2017 08:25:54 +0000 (09:25 +0100)]
Remove test that was using removed deprecated code
Thomas Bouron [Wed, 19 Apr 2017 08:15:08 +0000 (09:15 +0100)]
Removed unused class
Geoff Macartney [Tue, 18 Apr 2017 13:58:51 +0000 (14:58 +0100)]
Closes #45
Remove deprecated REST API endpoints
This requires https://github.com/apache/brooklyn-server/pull/637
Thomas Bouron [Fri, 14 Apr 2017 12:21:34 +0000 (13:21 +0100)]
Fix unit tests and launcher config
Richard Downer [Tue, 11 Apr 2017 15:13:49 +0000 (15:13 +0000)]
Bump version to 0.12.0-SNAPSHOT
graeme.miller [Wed, 5 Apr 2017 15:12:04 +0000 (16:12 +0100)]
Added the ability to upload a zip via the CLI
Svetoslav Neykov [Mon, 27 Mar 2017 12:39:05 +0000 (15:39 +0300)]
Closes #41
Use the non-deprecated API method to upload catalog items
This requires https://github.com/apache/brooklyn-server/pull/485 to be merged first
Thomas Bouron [Fri, 24 Mar 2017 12:34:38 +0000 (12:34 +0000)]
Use the non-deprecated API method to upload catalog items
Duncan Godwin [Wed, 15 Feb 2017 09:26:26 +0000 (09:26 +0000)]
This closes #39
Robert Moss [Tue, 14 Feb 2017 15:44:23 +0000 (15:44 +0000)]
adds flag for connecting to servers using self-sign ssl, fixing existing code that handles flags
Sam Corbett [Mon, 6 Feb 2017 14:58:15 +0000 (14:58 +0000)]
This closes #37
Add missing @Override annotations and other cleanup
Svetoslav Neykov [Fri, 20 Jan 2017 14:07:33 +0000 (16:07 +0200)]
Add missing @Override annotation to method signatures overriding interface methods
Aled Sage [Mon, 23 Jan 2017 19:58:09 +0000 (19:58 +0000)]
This closes #38
Aled Sage [Mon, 23 Jan 2017 18:51:28 +0000 (18:51 +0000)]
Exclude cli/.glide/* (cache) from rat + git
Geoff Macartney [Thu, 5 Jan 2017 09:59:53 +0000 (09:59 +0000)]
Closes #36
Add NOTICE file to generated client archive
Svetoslav Neykov [Thu, 15 Dec 2016 13:52:41 +0000 (15:52 +0200)]
Add NOTICE file to generated client archive
Svetoslav Neykov [Sun, 4 Dec 2016 16:32:09 +0000 (16:32 +0000)]
Change version to 0.11.0-SNAPSHOT
Sam Corbett [Fri, 2 Dec 2016 14:04:03 +0000 (14:04 +0000)]
This closes #33
Set default JVM memory settings for the build
Sam Corbett [Fri, 2 Dec 2016 14:04:00 +0000 (14:04 +0000)]
This closes #35
Update LICENSE with changes in project dependencies
Svetoslav Neykov [Fri, 25 Nov 2016 16:02:35 +0000 (18:02 +0200)]
Update LICENSE with changes in project dependencies
Geoff Macartney [Thu, 24 Nov 2016 13:01:01 +0000 (13:01 +0000)]
This closes #34
Svetoslav Neykov [Thu, 24 Nov 2016 08:40:56 +0000 (10:40 +0200)]
Remove unused profile
The plugin in the rat-check profile is now activated by default in build/plugins.
Svetoslav Neykov [Tue, 15 Nov 2016 07:18:10 +0000 (09:18 +0200)]
Set default JVM memory settings for the build
Alex Heneveld [Thu, 3 Nov 2016 10:49:55 +0000 (10:49 +0000)]
This closes #31
Alex Heneveld [Thu, 3 Nov 2016 10:47:57 +0000 (10:47 +0000)]
remove redundant gitignore instructions
Alex Heneveld [Thu, 3 Nov 2016 10:47:13 +0000 (10:47 +0000)]
This closes #32
Alex Heneveld [Thu, 3 Nov 2016 10:45:32 +0000 (10:45 +0000)]
This closes #27
Geoff Macartney [Thu, 3 Nov 2016 09:47:23 +0000 (09:47 +0000)]
Add .gitignore (got left behind in move
f63006ba) to 'cli'.
Geoff Macartney [Tue, 1 Nov 2016 12:14:05 +0000 (12:14 +0000)]
Experimental addition of 'catalog show'.
Examples:
br catalog show
br catalog show ( application | entity | location | policy ) ITEM[:VERSION]
apps:
br catalog show app TomcatServer
Id: | TomcatServer:4.1.0-SNAPSHOT
Version: | 4.1.0-SNAPSHOT
Name: | Tomcat Server
...etc.
specific version:
br catalog show app TomcatServer:4.1.0-SNAPSHOT
Id: | TomcatServer:4.1.0-SNAPSHOT
Version: | 4.1.0-SNAPSHOT
Name: | Tomcat Server
...
entities:
br catalog show ent docker-engine | head -3
Id: | docker-engine:2.1.0-SNAPSHOT
Version: | 2.1.0-SNAPSHOT
Name: | Docker Engine
...
policies:
br catalog show pol org.apache.brooklyn.policy.ha.ServiceReplacer
Id: | org.apache.brooklyn.policy.ha.ServiceReplacer:4.1.0-SNAPSHOT
Version: | 4.1.0-SNAPSHOT
Name: | Service Replacer
Symbolic Name: | org.apache.brooklyn.policy.ha.ServiceReplacer
Description: | HA policy for replacing a failed member of a group
Java Type: |
Experimental: render as JSON. Some work required...
Special case: render the whole JSON with jsonpath value `$`:
br -j '$' catalog show ent docker-engine
{"id":"docker-engine:2.1.0-SNAPSHOT","name":"Docker Engine",...
General case: give a JSON path expression following the syntax of https://github.com/NodePrime/jsonpath:
br -j '$.config[*].label+' catalog show ent docker-engine
"Docker Package"
"Docker Version"
"Docker Repository URL"
"Docker GPG Key URL"
"Docker Additional Options"
"Image Pre-install"
"archive.nameFormat"
Svetoslav Neykov [Tue, 13 Sep 2016 14:53:25 +0000 (17:53 +0300)]
Re-use pom config from brooklyn-server
Analogously to brooklyn-library reuse pom configuration from brooklyn-server. While not ideal this allows us to have version and plugin configuration at one place.
Svetoslav Neykov [Tue, 25 Oct 2016 19:18:40 +0000 (22:18 +0300)]
Closes #30
br app only outputs location details when the app has a location
Fixes https://issues.apache.org/jira/browse/BROOKLYN-230.
Svetoslav Neykov [Tue, 25 Oct 2016 19:09:20 +0000 (22:09 +0300)]
Closes #29
Usability improvements and better catalog support
Geoff Macartney [Tue, 25 Oct 2016 16:21:28 +0000 (17:21 +0100)]
Fix delete usage
Svetoslav Neykov [Tue, 25 Oct 2016 13:41:57 +0000 (16:41 +0300)]
Close #26
Update pom SCM & Jenkins URLs
Geoff Macartney [Tue, 25 Oct 2016 11:12:19 +0000 (12:12 +0100)]
test update
Geoff Macartney [Tue, 25 Oct 2016 10:52:21 +0000 (11:52 +0100)]
Fix br tree for apps with members
Geoff Macartney [Mon, 24 Oct 2016 18:55:53 +0000 (19:55 +0100)]
Avoid passing through the content even for 404 URLs
Sam Corbett [Mon, 24 Oct 2016 16:40:53 +0000 (17:40 +0100)]
Only output location details when the app has a location
Fixes https://issues.apache.org/jira/browse/BROOKLYN-230
Geoff Macartney [Mon, 24 Oct 2016 14:58:27 +0000 (15:58 +0100)]
Remove newlines from output tables and add delimiter character.
Geoff Macartney [Mon, 24 Oct 2016 14:57:21 +0000 (15:57 +0100)]
Restore 'add-catalog' for backward compatibility.
Geoff Macartney [Mon, 24 Oct 2016 13:49:17 +0000 (14:49 +0100)]
Fix subcommand usage.
avoid 'BROOKLYN_NAME' in help text
Geoff Macartney [Mon, 24 Oct 2016 13:35:27 +0000 (14:35 +0100)]
Make args singular for nicer syntax of delete command.
Geoff Macartney [Mon, 24 Oct 2016 13:32:31 +0000 (14:32 +0100)]
Do arguments to `delete` as such, rather than as flags.
Geoff Macartney [Mon, 24 Oct 2016 12:44:32 +0000 (13:44 +0100)]
Do arguments to `list` as such, rather than as flags.
Retain the add-catalog command for backward compatibility.
Geoff Macartney [Fri, 14 Oct 2016 19:58:36 +0000 (20:58 +0100)]
?allVersions=true
Geoff Macartney [Fri, 14 Oct 2016 12:44:59 +0000 (13:44 +0100)]
add br catalog delete for entities, locations, policies
Geoff Macartney [Thu, 13 Oct 2016 19:56:10 +0000 (20:56 +0100)]
Simplify output of catalog add
Geoff Macartney [Thu, 13 Oct 2016 19:25:56 +0000 (20:25 +0100)]
Do add-catalog as catalog add
Geoff Macartney [Thu, 13 Oct 2016 19:18:56 +0000 (20:18 +0100)]
add catalog list for entities, locations, policies
Geoff Macartney [Wed, 12 Oct 2016 19:11:11 +0000 (20:11 +0100)]
Add catalog delete
Geoff Macartney [Wed, 12 Oct 2016 13:07:59 +0000 (14:07 +0100)]
Add catalog list
Geoff Macartney [Tue, 11 Oct 2016 15:51:24 +0000 (16:51 +0100)]
fix import paths
Aled Sage [Tue, 27 Sep 2016 16:57:00 +0000 (17:57 +0100)]
This closes #28
graeme.miller [Mon, 26 Sep 2016 14:08:23 +0000 (15:08 +0100)]
updated resteasy to 3.0.19.Final
graeme.miller [Mon, 19 Sep 2016 08:44:25 +0000 (09:44 +0100)]
Updated resteasy version
Svetoslav Neykov [Tue, 13 Sep 2016 14:46:42 +0000 (17:46 +0300)]
Update pom SCM & Jenkins URLs
Andrea Turli [Sat, 10 Sep 2016 17:13:46 +0000 (19:13 +0200)]
This closes brookyln-client #25
Andrea Turli [Wed, 7 Sep 2016 16:07:07 +0000 (18:07 +0200)]
move rest-client to brooklyn-client
update brooklyn-client/cli/README.md
Svetoslav Neykov [Thu, 14 Jul 2016 20:43:43 +0000 (23:43 +0300)]
Closes #24
Fixed Compilation Issue
Unused Imports
Mismatch return parameters.
Svetoslav Neykov [Thu, 14 Jul 2016 20:43:03 +0000 (23:43 +0300)]
Closes #23
Update link to README.
File was moved in https://github.com/apache/brooklyn-client/commit/
6fc8a1ee098fa5a4cd7d8fe726dcc7354abaf15a
Jitendra [Tue, 21 Jun 2016 13:20:49 +0000 (18:50 +0530)]
Fixed Compilation Issue
Unused Imports
Mismatch return parameters.
Geoff Macartney [Wed, 15 Jun 2016 16:06:56 +0000 (17:06 +0100)]
Update link to README.
File was moved in https://github.com/apache/brooklyn-client/commit/
6fc8a1ee098fa5a4cd7d8fe726dcc7354abaf15a
Svetoslav Neykov [Fri, 3 Jun 2016 13:05:40 +0000 (16:05 +0300)]
Closes #22
Add glide vendoring
Removes unversioned vendor deps from repo and replaces them with [glide](https://github.com/Masterminds/glide) deps.
Deps are locked to the versions from the initial vendor commit.
John McCabe [Fri, 3 Jun 2016 10:46:47 +0000 (11:46 +0100)]
add vendor to gitignore
John McCabe [Thu, 2 Jun 2016 23:26:05 +0000 (00:26 +0100)]
add glide to rat exclusions
John McCabe [Thu, 2 Jun 2016 21:56:08 +0000 (22:56 +0100)]
update README for glide deps management
John McCabe [Thu, 2 Jun 2016 21:17:42 +0000 (22:17 +0100)]
add glide support to mvn install
John McCabe [Thu, 2 Jun 2016 20:54:17 +0000 (21:54 +0100)]
add and lock glide deps
John McCabe [Thu, 2 Jun 2016 20:49:05 +0000 (21:49 +0100)]
remove empty src - breaks glide
John McCabe [Thu, 2 Jun 2016 20:48:36 +0000 (21:48 +0100)]
remove unversioned vendor deps
Svetoslav Neykov [Mon, 30 May 2016 15:02:01 +0000 (18:02 +0300)]
Closes #21
[BROOKLYN-280] add --skipSslChecks flag to work with self-signed certs
- defaults to `false`, ie existing behaviour
- setting the flag `--skipSslChecks` disables certificate chain and hostname verification (see `InsecureSkipVerify` in https://golang.org/pkg/crypto/tls/)
- persisted to `~/.brooklyn_cli`
- also bumped version to `0.10.0-SNAPSHOT`
```
bash-4.3$ br login https://10.10.10.100:8443/ admin password
Get https://10.10.10.100:8443/v1/server/version: x509: certificate signed by unknown authority
bash-4.3$ br app
Get https://10.10.10.100:8443/v1/applications: x509: certificate signed by unknown authority
bash-4.3$ br --skipSslChecks login https://10.10.10.100:8443/ admin password
Connected to Brooklyn version 0.10.0-
20160513.2042 at https://10.10.10.100:8443
bash-4.3$ br app
Id Name Status Location
```
*Note*: I'd no apps running on this system so the empty table is ok, catalog returns as expected.
```json
{
"auth": {
"https://10.10.10.100:8443": {
"password": "password",
"username": "admin"
}
},
"skipSslChecks": true,
"target": "https://10.10.10.100:8443"
}
```
Svetoslav Neykov [Mon, 30 May 2016 15:01:14 +0000 (18:01 +0300)]
Closes #20
move codegangsta to new urfave org
- see https://github.com/urfave/cli/commit/
024b4c6240a085f57e3c7e7378106a3252dc0a77
as an aside we should look further into the 1.6 vendoring tooling as we're aren't persisting a reference to the source repo (commit id/tag/branch etc).
Svetoslav Neykov [Mon, 30 May 2016 15:00:28 +0000 (18:00 +0300)]
Closes #19
Support getting arguments from URL or file.
Lets you use either local files or http/s URLs in several commands.
For example you could add a catalog direct from one of the repos listed in a public repository:
```
$ br add-catalog https://raw.githubusercontent.com/johnmccabe/brooklyn-minecraft/master/catalog.bom
```
John McCabe [Wed, 25 May 2016 06:31:34 +0000 (07:31 +0100)]
add BROOKLYN_VERSION inline
John McCabe [Tue, 24 May 2016 18:09:06 +0000 (19:09 +0100)]
fix BROOKLYN-280, add --skipSslChecks flag
- defaults to false, ie existing behaviour
- setting to true disables certificate chain and hostname verificiation (see `InsecureSkipVerify` in https://golang.org/pkg/crypto/tls/)
- persisted to ~/.brooklyn_cli
```
bash-4.3$ br login https://10.10.10.100:8443/ admin password
Get https://10.10.10.100:8443/v1/server/version: x509: certificate signed by unknown authority
bash-4.3$ br app
Get https://10.10.10.100:8443/v1/applications: x509: certificate signed by unknown authority
bash-4.3$ br --skipSslChecks login https://10.10.10.100:8443/ admin password
Connected to Brooklyn version 0.10.0-
20160513.2042 at https://10.10.10.100:8443
bash-4.3$ br app
Id Name Status Location
```
John McCabe [Tue, 24 May 2016 15:53:55 +0000 (16:53 +0100)]
move codegangsta to new urfave org
- see https://github.com/urfave/cli/commit/
024b4c6240a085f57e3c7e7378106a3252dc0a77
Geoff Macartney [Mon, 2 May 2016 21:13:01 +0000 (22:13 +0100)]
Support getting arguments from URL or file.
Svetoslav Neykov [Wed, 20 Apr 2016 14:41:38 +0000 (15:41 +0100)]
Closes #17
Minor README update to remove remark redundant since vendoring added.
also adds recommendation to use Go 1.6.1 due to https://groups.google.com/forum/m/#!msg/golang-announce/9eqIHqaWvck/kXsfO0ogLAAJ
Geoff Macartney [Wed, 13 Apr 2016 08:16:16 +0000 (09:16 +0100)]
Update recommended version of Go to 1.6.1 due to security issue.
See https://groups.google.com/forum/m/#!msg/golang-announce/9eqIHqaWvck/kXsfO0ogLAAJ.
Geoff Macartney [Mon, 11 Apr 2016 09:36:56 +0000 (10:36 +0100)]
Minor README update to remove remark redundant since vendoring added.
Svetoslav Neykov [Wed, 6 Apr 2016 15:10:43 +0000 (18:10 +0300)]
Closes #16
Use Go 1.6 vendoring instead of Godep.
Uses current version of dependencies, just moving them to the vendor directory.
Geoff Macartney [Wed, 6 Apr 2016 13:03:18 +0000 (14:03 +0100)]
Use Go 1.6 vendoring instead of Godep.
Uses current version of dependencies, just moving them to the vendor directory.
Svetoslav Neykov [Tue, 5 Apr 2016 15:35:29 +0000 (18:35 +0300)]
Closes #14
Update build so that it includes only the files that we want.
Reduces build time and distribution size.
This was discussed in relation to previous commits, see
https://github.com/apache/brooklyn-docs/pull/25#discussion_r55650931
Also builds executables called "br.exe" when building for Windows.
Geoff Macartney [Tue, 5 Apr 2016 15:23:56 +0000 (16:23 +0100)]
Just build 32 bit binaries on linux & windows.
Will work for both 32 & 64 bit OSes.
Svetoslav Neykov [Tue, 5 Apr 2016 14:42:57 +0000 (17:42 +0300)]
Closes #15
Update documented required Go version
drigodwin [Tue, 5 Apr 2016 14:31:46 +0000 (15:31 +0100)]
Update documented required Go version
Svetoslav Neykov [Tue, 5 Apr 2016 14:15:49 +0000 (17:15 +0300)]
Closes #11
remove brooklyn-client Godep from repo
@geomacy can you have a look at this, leaving this in results in mvn building from the old Godep. I can build via `mvn`, `godep install`