src/xds/xds-cli.git
6 years agoDisable completion (not working well) 85/17385/1 6.99.1 6.99.2 6.99.3 6.99.4 guppy/6.99.1 guppy/6.99.2 guppy/6.99.3 guppy/6.99.4 guppy_6.99.1 guppy_6.99.2 guppy_6.99.3 guppy_6.99.4
Sebastien Douheret [Tue, 23 Oct 2018 08:20:44 +0000 (10:20 +0200)]
Disable completion (not working well)

Disable completion for now, because it's not working with options
(eg. --label) and prevents to complete local path
IOW current function only completes command and sub-commands that may
be usefull but less important than completing a path.

Change-Id: Ib5fe4f8492367d383bbe92351ec8c69a65b4ea4c
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
6 years agoDisplay new image url field with sdk list command 79/17379/1
Sebastien Douheret [Mon, 22 Oct 2018 21:06:02 +0000 (23:06 +0200)]
Display new image url field with sdk list command

Change-Id: I26db1f7ebedd502db123e249a69bad30fbc0db99
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
6 years agoRework zip package versioning 19/17319/1
Sebastien Douheret [Fri, 19 Oct 2018 20:59:47 +0000 (22:59 +0200)]
Rework zip package versioning

In order to always have a number that's incrementing, use git commits
number for last detected tag.

Change-Id: I9d8b6b56b9b884e4adfb20113cfe8f3738c473d6
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
6 years agoUpdate command used to extract version from tag 17/17317/1
Sebastien Douheret [Thu, 18 Oct 2018 19:28:36 +0000 (21:28 +0200)]
Update command used to extract version from tag

Fix for issue SPEC-1782

XDS Version is based on git tags and 3 formats are used to tag the same AGL
version, for example: flounder_6.90.0, flounder/6.90.0, tag: 6.90.0.
For time to time (don't know why always reproducible) the "git describe"
command returns the number version/tag (6.90.0) that is expected and
sometimes it's the string version/tag (flounder/6.90.0) that is
problematic.

Change-Id: I9fdbe93cfea917493a8d4e8346a72cc97cf9c5bd
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
6 years agoBump xds-agent to latest version 99/17299/1
Sebastien Douheret [Thu, 18 Oct 2018 16:12:51 +0000 (18:12 +0200)]
Bump xds-agent to latest version

Need latest xds-agent version that introduces LdLibPathNoReset field.

Change-Id: I597387f4d41f14c3fb6646fef00ed6458e938978
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
6 years agoAdd hidden option -ldlibpath-no-reset 57/17257/1
Sebastien Douheret [Wed, 17 Oct 2018 15:05:47 +0000 (17:05 +0200)]
Add hidden option -ldlibpath-no-reset

Following change (https://gerrit.automotivelinux.org/gerrit/#/c/17253/)
xds-server unset LD_LIBRARY_PATH by default.
This new option allows user to keep LD_LIBRARY_PATH as is (IOW don't uset
LD_LIBRARY_PATH) before executing the requested commands.
Note that this option is hidden (not listed in help output) because it's
only reserved for advanced usage.

Change-Id: I34928763699bc24e726f5cb7de0877c0b2bfb813
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
6 years agoMake id option overwrite XDS_xxx_ID env var 81/17181/1
Sebastien Douheret [Fri, 12 Oct 2018 10:12:20 +0000 (12:12 +0200)]
Make id option overwrite XDS_xxx_ID env var

The behavior must be the same when XDS_SDK_ID is defined and user
set -id option or simply give an id without setting "--id" string
option.
IOW all following commands must give the exact same result  (get info
of sdk 9d69):
./bin/xds-cli sdks get -id 9d69
./bin/xds-cli sdks get 9d69
XDS_SDK_ID=9d69 ./bin/xds-cli sdks get
XDS_SDK_ID=1234 ./bin/xds-cli sdks get -id 9d69
XDS_SDK_ID=12345 ./bin/xds-cli sdks get 9d69

Change-Id: Idbd3f052df8172d56de98f827743b43d70d37393
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
6 years agoRationalize VSCode settings for all xds repo 27/15727/1 5.99.3 5.99.5 5.99.6 6.90.0 flounder/5.99.3 flounder/5.99.5 flounder/5.99.6 flounder_5.99.3 flounder_5.99.5 flounder_5.99.6 guppy/6.90.0 guppy_6.90.0
Sebastien Douheret [Fri, 13 Jul 2018 15:38:42 +0000 (17:38 +0200)]
Rationalize VSCode settings for all xds repo

Change-Id: Ie1c91242fef9b49b1dc71707dd2546254792e649
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
6 years agoPackaging: ignore expected rpmlint warning 25/15725/1
Sebastien Douheret [Fri, 13 Jul 2018 12:23:13 +0000 (14:23 +0200)]
Packaging: ignore expected rpmlint warning

Change-Id: I27d2e592514032b63dae38986a74b74a1068ebd5
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
6 years agoUpdate/fix rpm and deb packaging 03/15103/1 5.99.2 flounder/5.99.2 flounder_5.99.2
Sebastien Douheret [Fri, 6 Jul 2018 16:39:00 +0000 (18:39 +0200)]
Update/fix rpm and deb packaging

Change-Id: I576c7c02def683dc3028194e68416bfc0b167067
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
6 years agoUpdate dependency version for xds agent & common 39/14739/1 5.99.1 flounder/5.99.1 flounder_5.99.1
Sebastien Douheret [Wed, 27 Jun 2018 15:38:12 +0000 (17:38 +0200)]
Update dependency version for xds agent & common

Change-Id: I7d091b310a613cd304dce38a4a36594ff7421462
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
6 years agogo version: check if go version is greater than 1.9.0 57/14057/1
Clément Bénier [Mon, 21 May 2018 13:23:05 +0000 (15:23 +0200)]
go version: check if go version is greater than 1.9.0

Makefile checks if go version is greater than 1.9.0 if it is not the case an error
log advise to clear the glide cache with glide cc command.

Change-Id: If141a2b0972139a132f21c640affdf05869db2b5
Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
6 years agoAdd packaging files 95/13995/1
Ronan Le Martret [Tue, 15 May 2018 15:50:09 +0000 (17:50 +0200)]
Add packaging files

 * it's easier to manage native build package.

Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
6 years agoFixed meta tags in path to avoid conflict with spec syntax v1.1.1
Sebastien Douheret [Thu, 5 Apr 2018 09:04:10 +0000 (11:04 +0200)]
Fixed meta tags in path to avoid conflict with spec syntax

Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
6 years agoExit xds-cli on XDS-Server disconneciton.
Sebastien Douheret [Mon, 12 Mar 2018 15:10:40 +0000 (16:10 +0100)]
Exit xds-cli on XDS-Server disconneciton.

Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
6 years agoAdded default CTRL+C signal handler.
Sebastien Douheret [Fri, 9 Mar 2018 16:34:42 +0000 (17:34 +0100)]
Added default CTRL+C signal handler.

Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
6 years agoFixed terminal output (support escape and control characters)
Sebastien Douheret [Fri, 9 Mar 2018 16:33:18 +0000 (17:33 +0100)]
Fixed terminal output (support escape and control characters)

Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
6 years agoAdded bash completion support.
Sebastien Douheret [Tue, 6 Mar 2018 15:47:13 +0000 (16:47 +0100)]
Added bash completion support.

Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
6 years agoFixed target and terminal id arg parsing
Sebastien Douheret [Mon, 5 Mar 2018 16:48:39 +0000 (17:48 +0100)]
Fixed target and terminal id arg parsing

Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
6 years agoAdded target and terminal support v1.1.0
Sebastien Douheret [Fri, 23 Feb 2018 21:13:22 +0000 (22:13 +0100)]
Added target and terminal support

Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
6 years agoAdded logfile support
Sebastien Douheret [Fri, 23 Feb 2018 16:58:17 +0000 (17:58 +0100)]
Added logfile support

Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
6 years agoFixed conflict name between exec package and local exec function.
Sebastien Douheret [Fri, 23 Feb 2018 16:57:33 +0000 (17:57 +0100)]
Fixed conflict name between exec package and local exec function.

Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
6 years agofix install script 39/13439/1
Loïc Collignon [Wed, 14 Feb 2018 13:43:13 +0000 (14:43 +0100)]
fix install script

Change-Id: I00e43d9df9521cfebea93d63eb5ec7bccf272a64
Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
6 years agoSort projects and sdks list.
Sebastien Douheret [Fri, 26 Jan 2018 16:28:12 +0000 (17:28 +0100)]
Sort projects and sdks list.

Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
6 years agoFixed usage of project type. 5.0.1 eel/5.0.1 eel_5.0.1
Sebastien Douheret [Wed, 24 Jan 2018 17:15:23 +0000 (18:15 +0100)]
Fixed usage of project type.

Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
6 years agoFixed crach when no XDS Server connected.
Sebastien Douheret [Wed, 24 Jan 2018 14:18:04 +0000 (15:18 +0100)]
Fixed crach when no XDS Server connected.

Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
6 years agoFixed GOPATH setup while debugging in VSC
Sebastien Douheret [Wed, 24 Jan 2018 14:17:36 +0000 (15:17 +0100)]
Fixed GOPATH setup while debugging in VSC

Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
6 years agoAdded -s | --short option (useful from scripting)
Sebastien Douheret [Tue, 23 Jan 2018 14:38:23 +0000 (15:38 +0100)]
Added -s | --short option (useful from scripting)

Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
6 years agoUsed new SDK Management event.
Sebastien Douheret [Tue, 23 Jan 2018 14:35:32 +0000 (15:35 +0100)]
Used new SDK Management event.

Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
6 years agoList "Installing" sdks by default.
Sebastien Douheret [Mon, 22 Jan 2018 17:10:09 +0000 (18:10 +0100)]
List "Installing" sdks by default.

Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
6 years agoUpdated go dep (used xds-agent api ~1.0.0) v1.0.0
Sebastien Douheret [Mon, 8 Jan 2018 18:36:51 +0000 (19:36 +0100)]
Updated go dep (used xds-agent api ~1.0.0)

Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
6 years agoMigration to AGL gerrit (update go import)
Sebastien Douheret [Fri, 5 Jan 2018 15:47:05 +0000 (16:47 +0100)]
Migration to AGL gerrit (update go import)

Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
6 years agoAdded AGL .gitreview file
Sebastien Douheret [Fri, 5 Jan 2018 15:11:52 +0000 (16:11 +0100)]
Added AGL .gitreview file

Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
6 years agoAdd confirmation before deleting a project or a sdk.
Sebastien Douheret [Thu, 4 Jan 2018 23:44:24 +0000 (00:44 +0100)]
Add confirmation before deleting a project or a sdk.

Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
6 years agoImproved SDK installation output and add -debug option.
Sebastien Douheret [Thu, 4 Jan 2018 23:19:29 +0000 (00:19 +0100)]
Improved SDK installation output and add -debug option.

6 years agoMinor fixes in sdks command output.
Sebastien Douheret [Wed, 3 Jan 2018 10:12:14 +0000 (11:12 +0100)]
Minor fixes in sdks command output.

6 years agoAdded sdks install / uninstall / abort commands. v0.1.3
Sebastien Douheret [Fri, 22 Dec 2017 21:27:01 +0000 (22:27 +0100)]
Added sdks install / uninstall / abort commands.

Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
6 years agoRemoved useless file from Windows package v0.1.2
Sebastien Douheret [Tue, 12 Dec 2017 13:04:27 +0000 (14:04 +0100)]
Removed useless file from Windows package

Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
6 years agoAdapt early logging level of HTTP client.
Sebastien Douheret [Tue, 12 Dec 2017 11:12:28 +0000 (12:12 +0100)]
Adapt early logging level of HTTP client.

6 years agoImproved reported error on invalid XDS_AGENT_URL
Sebastien Douheret [Thu, 7 Dec 2017 16:45:29 +0000 (17:45 +0100)]
Improved reported error on invalid XDS_AGENT_URL

Specifically when AGENT_URL is set to SERVER_URL and consequently connection failed with "Failed to get device ID" error.

6 years agoSupport ~ or $VAR for --config option value
Sebastien Douheret [Thu, 7 Dec 2017 14:59:39 +0000 (15:59 +0100)]
Support ~ or $VAR for --config option value

6 years agoDisplay early log when exiting earlier.
Sebastien Douheret [Thu, 7 Dec 2017 14:58:35 +0000 (15:58 +0100)]
Display early log when exiting earlier.

6 years agoFixed rpath option detection of exec command.
Sebastien Douheret [Wed, 6 Dec 2017 21:54:06 +0000 (22:54 +0100)]
Fixed rpath option detection of exec command.

6 years agoOnly update Server URL when it's necessary. v0.1.1
Sebastien Douheret [Tue, 5 Dec 2017 13:57:56 +0000 (14:57 +0100)]
Only update Server URL when it's necessary.

6 years agoSupport --config option either before or after command verb.
Sebastien Douheret [Tue, 5 Dec 2017 13:56:14 +0000 (14:56 +0100)]
Support --config option either before or after command verb.

6 years agoAdded "misc status" (short: "m sts") command
Sebastien Douheret [Mon, 4 Dec 2017 10:27:30 +0000 (11:27 +0100)]
Added "misc status" (short: "m sts") command

6 years agoUpdate connection options: --url/XDS_AGENT_URL and --url-server/XDS_SERVER_URL.
Sebastien Douheret [Mon, 4 Dec 2017 10:25:42 +0000 (11:25 +0100)]
Update connection options: --url/XDS_AGENT_URL  and --url-server/XDS_SERVER_URL.

--url option (or XDS_AGENT_URL env var) must be used to setup connection with XDS agent running locally on developer host.

--url-server (XDS_SERVER_URL env var) may be set to overwrite default connection settings with XDS server.

6 years agoAdded XDS_SDK_ID and XDS_PROJECT_ID env variables support.
Sebastien Douheret [Mon, 4 Dec 2017 10:21:44 +0000 (11:21 +0100)]
Added XDS_SDK_ID and XDS_PROJECT_ID env variables support.

6 years agoAdded Copyright headers. v0.1.0
Sebastien Douheret [Thu, 30 Nov 2017 15:09:01 +0000 (16:09 +0100)]
Added Copyright headers.

Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
6 years agoCheck go version because xds-common request go > v1.8.1
Sebastien Douheret [Thu, 30 Nov 2017 14:59:00 +0000 (15:59 +0100)]
Check go version because xds-common request go > v1.8.1

6 years agoAdd -u short option for --url and support port number only.
Sebastien Douheret [Thu, 30 Nov 2017 13:29:35 +0000 (14:29 +0100)]
Add -u short option for --url and support port number only.

Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
6 years agoUsed new agent lib name xaapiv1 and fix env setup.
Sebastien Douheret [Tue, 28 Nov 2017 13:19:00 +0000 (14:19 +0100)]
Used new agent lib name xaapiv1 and fix env setup.

Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
6 years agoFixed config file option or env var detection.
Sebastien Douheret [Fri, 24 Nov 2017 16:46:24 +0000 (17:46 +0100)]
Fixed config file option or env var detection.

6 years agoAdded config and install scripts
Sebastien Douheret [Fri, 10 Nov 2017 09:10:53 +0000 (10:10 +0100)]
Added config and install scripts

Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
6 years agoUse fix commit id to fetch xds-agent while waiting rc2.
Sebastien Douheret [Fri, 10 Nov 2017 08:38:55 +0000 (09:38 +0100)]
Use fix commit id to fetch xds-agent while waiting rc2.

6 years agoLog projects events.
Sebastien Douheret [Wed, 8 Nov 2017 16:45:39 +0000 (17:45 +0100)]
Log projects events.

6 years agoAdded short options for exec and project subcommands.
Sebastien Douheret [Wed, 8 Nov 2017 16:45:12 +0000 (17:45 +0100)]
Added short options for exec and project subcommands.

6 years agoDisplay help when no arg is set.
Sebastien Douheret [Wed, 8 Nov 2017 09:21:43 +0000 (10:21 +0100)]
Display help when no arg is set.

6 years agoImproved help/description .
Sebastien Douheret [Mon, 6 Nov 2017 17:11:19 +0000 (18:11 +0100)]
Improved help/description .

6 years agoFixed version setting.
Sebastien Douheret [Mon, 6 Nov 2017 16:35:13 +0000 (17:35 +0100)]
Fixed version setting.

6 years agoFixed env vars setting from config file.
Sebastien Douheret [Mon, 6 Nov 2017 15:51:23 +0000 (16:51 +0100)]
Fixed env vars setting from config file.

6 years agoInitial commit v0.0.1
Sebastien Douheret [Fri, 3 Nov 2017 17:32:24 +0000 (18:32 +0100)]
Initial commit

Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>