core-cli

command module
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 16, 2019 License: MIT Imports: 11 Imported by: 0

README

Corectl (Experimental)

Corectl is a command line tool to perform reloads, fetch metadata and evaluate expressions in Qlik Core apps.


Download

Change <version> below to the version you want to download.

E.G v0.0.4

On Linux and OS X

 curl --silent --location "https://github.com/qlik-oss/corectl/releases/download/<version>/corectl-$(uname -s)-x86_64.tar.gz" | tar xz -C /tmp && mv /tmp/corectl /usr/local/bin/corectl

On Windows with git bash

curl --silent --location "https://github.com/qlik-oss/corectl/releases/download/<version>/corectl-windows-x86_64.zip" > corectl.zip && unzip ./corectl.zip -d "$HOME/bin/" && rm ./corectl.zip

You can also download the binary manually from releases.

Development

Either clone the repo or go get it:

go get -u github.com/qlik-oss/corectl

Build the main.go file to a location on your path. You can use the buildtohomebin script.

./buildtohomebin

Usage

Usage documentation and examples can be found here.

Testing

The unit tests are run with the go test command:

go test ./...

The integration tests depend on external components. Before they can run, you must accept the Qlik Core EULA by setting the ACCEPT_EULA environment variable, you start the services by using the docker-compose.yml file. The tests are run with the test script:

ACCEPT_EULA=<yes/no> docker-compose up -d
go test corectl_integration_test.go

The tests are by default trying to connect to an engine on localhost:9076 and another one on localhost:9176. This can be changed with the --engineIP flag and --engine2IP flag.

go test corectl_integration_test.go --engineIP HOST:PORT --engine2IP HOST:ANOTHERPORT

If the reference output files need to be updated, run the test with --update flag.

go test corectl_integration_test.go --update

Release

You create a release by pushing a git tag with semantic versioning. CircleCi will then run a release build that uses goreleaser to release corectl with the version set as the git tag.

Example: git tag v0.1.0 COMMIT-SHA git push origin v0.1.0

Documentation

The usage documentation is generated using cobra/doc. To regenerate the documentation:

corectl generate-docs

Contributing

We welcome and encourage contributions! Please read Open Source at Qlik R&D for more info on how to get involved.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
test
testconnector/qlik_connect
Package qlik_connect is a generated protocol buffer package.
Package qlik_connect is a generated protocol buffer package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL