massdriver-cli

command module
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

README

Massdriver CLI

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

Documentation

Overview

Copyright © 2022 NAME HERE <EMAIL ADDRESS>

Directories

Path Synopsis
pkg
api
api2
Massdriver GraphQL API queries/mutations using Genqlient
Massdriver GraphQL API queries/mutations using Genqlient
cmd
views/artifacts_table
TODO: refactor w/ credential_types to make a bubble tea module for table selection with input testing https://github.com/charmbracelet/bubbles/blob/master/textarea/textarea_test.go#L445
TODO: refactor w/ credential_types to make a bubble tea module for table selection with input testing https://github.com/charmbracelet/bubbles/blob/master/textarea/textarea_test.go#L445

Jump to

Keyboard shortcuts

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