cli

command module
v0.2.6-nick6 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

Nucleus CLI

Dependencies

golangci-lint: brew install golangci-lint

Command Line Tools Package for XCode: xcode-select --install

Enable private repo access (using ssh)

export GOPRIVATE=github.com/nucleuscloud

Add the following to ~/.gitconfig

[url "git@github.com:nucleuscloud"]
    insteadOf = https://github.com/nucleuscloud

Building

All of the build scripts are encapsulated within the Makefile

To build the project in a standard way for your OS, simply run:

make build

This will output to bin/nucleus

Releasing

To release a new version of the CLI for consumption, a new git tag must be created.

$ ./hack/tag.sh v1.0.0

This will create a git tag and push it to the origin. This will kick off a Github Action, which will do the following:

  1. Build the project across multiple targets (linux, mac) and multiple architectures (64bit, ARM)
  2. Create a new Github Release based off of the new tag and attach the binaries to the release.

Installing Nucleus CLI

Homebrew

You can install Nucleus CLI directly from Homebrew

brew install nucleuscloud/tap/nucleus
Download from releases page
  1. Go to the Releases Page.
  2. Download the tarball for your operating system: tar xzf <path-to-tar.gz> nucleus
  3. Put the binary somewhere on your PATH. E.g., on linux and mac: mv nucleus /usr/local/bin/nucleus.
Install via a package manager

Ensure you have go installed. This is only possible today for Nucleus devs as the CLI depends on types that live in the private organization

make
./bin/nucleus

Documentation

Overview

Copyright © 2021 NAME HERE <EMAIL ADDRESS>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Directories

Path Synopsis
internal
env

Jump to

Keyboard shortcuts

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