/massdriver-cli

Deprecated. See https://github.com/massdriver-cloud/mass

Primary LanguageGoApache License 2.0Apache-2.0

Massdriver CLI

Deprecated. See https://github.com/massdriver-cloud/mass

A command line interface for managing Massdriver bundles and applications.

Precommit

This repo uses precommit. Don't skip this step.

  1. Install precommmit on your system.
  2. Run pre-commit install to run hooks on git commit

Developing a bundle

Creating a new bundle

Generate a new bundle:

mass bundle generate -o ./my-bundle

Params & Connections

TBD

Building a bundle

Next you'll need to build your bundle. This will convert your params and connections into terraform variables for local development. This is also run during CI/CD to publish your bundle to Massdriver.

mass bundle build

Active Refactoring

  • ./cmd - Cobra commands; args / flags parsing, calls to domain commands (./pkg/cmd)
  • ./pkg/cmd - high level testable commands; leave out cobra specifics
  • ./pkg/api2 - GraphQL queries/mutations written w/ Genqclient (actively migrating)
  • ./pkg/views - Bubbletea interfaces used by applicable ./pkg/cmds