cli

command module
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

README

Doppler CLI

Warning: This tool is current pre-release. For the current stable version, please use the node-cli.

Install

TODO: this section

Development

Build the app:

go build

To specify the version at build time:

go build -ldflags '-X github.com/DopplerHQ/cli/version.ProgramVersion=YOUR_VERSION'

Or even at run time:

go run -ldflags '-X github.com/DopplerHQ/cli/version.ProgramVersion=YOUR_VERSION' main.go YOUR_ARGS

Generate a GPG key

Store the keys and passphrase in your doppler config

gpg --full-generate-key
gpg --list-secret-keys  # copy the key's 40-character ID
gpg --output secret.key --armor --export-secret-key KEY_ID
gpg --output public.key --armor --export KEY_ID
gpg --keyserver pgp.mit.edu --send-key LAST_8_DIGITS_OF_KEY_ID
Test

Test building for all targets:

goreleaser release --snapshot --skip-publish --rm-dist

Release
git tag -a vX.Y.Z -m "The release message"
git push --tags
GITHUB_TOKEN=$(doppler secrets get GITHUB_TOKEN --plain) goreleaser release --rm-dist

Note: The release will automatically fail if the tag and HEAD have diverged ⨯ release failed after 0.13s error=git tag v0.0.2 was not made against commit c9c6950d18790c17db11fedae331a226f8f12c6b

Help

Issue: gpg: signing failed: Inappropriate ioctl for device Fix: export GPG_TTY=$(tty)

Documentation

Overview

Copyright © 2019 Doppler <support@doppler.com>

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

Jump to

Keyboard shortcuts

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