Skip to content

raulb/cli

 
 

Repository files navigation

Meroxa

We believe that anyone should be empowered to leverage real-time data. Using the Meroxa CLI, you can build data infrastructure in minutes not months.

Website | Documentation | Installation Guide | Contribution Guide | Twitter

Documentation

Meroxa is documented publicly in https://docs.meroxa.com/docs, but on each build we also generate Markdown files for each command, exposing the available commands and help for each one. Check it out at docs/commands/meroxa.

Contributing

For a complete guide to contributing to the Meroxa CLI, see the Contribution Guide.

Installation Guide

Please follow the installation instructions in the Meroxa Documentation.

Build and Install the Binaries from Source (Advanced Install)

Currently, we provide pre-built Meroxa binaries for macOS (Darwin) Windows, and Linux architectures.

See Releases.

Prerequisite Tools:

To build from source:

  1. The CLI depends on meroxa-go (which is currently a private repo). To update vendoring the dependency, you'll need to run the following:
make gomod
  1. Build CLI as meroxa binary:
make build

Release

A goreleaser GitHub Action is configured to automatically build the CLI and cut a new release whenever a new git tag is pushed to the repo.

  • Tag - git tag -a vX.X.X -m "<message goes here>"
  • Push - git push origin vX.X.X

With every release, a new Homebrew formula will be automatically updated on meroxa/homebrew-taps.

Linting

If you want to make sure everything's correct before pushing to GitHub, you'll need to install golangci-lint and run:

$ golangci-lint run

Example:

❯ golangci-lint run
cmd/display.go:60:6: `appendCell` is unused (deadcode)
func appendCell(cells []*simpletable.Cell, text string) []*simpletable.Cell {
     ^

Tests

To run the test suite:

make test

Shell Completion

If you want to enable shell completion manually, you can generate your own using our meroxa completion command.

Type meroxa help completion for more information, or simply take a look at our documentation.

About

The Meroxa CLI

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 61.9%
  • Shell 26.1%
  • Roff 11.8%
  • Makefile 0.2%