cli

command module
v0.3.0 Latest Latest
Warning

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

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

README

PowerSlide CLI

Get it

Automatically (Linux/Mac)

/bin/bash -c "$(curl -fsSL https://github.com/power-slide/cli/releases/latest/download/install.sh)"

Manually (Linux/Mac/Windows)

Go to the latest release page, then click on the release asset that matches your OS & CPU to download it, if needed mark it as executable, rename it to pwrsl, then place it in a folder on your $PATH. Run pwrsl setup and follow the on screen insructions.

Update it

The CLI will check for updates automatically and prompt you to update. Run pwrsl update --help for more details.

Build it

Be sure to have golang >= 1.20, sed, jq, curl and make installed.

git clone https://github.com/power-slide/cli.git pwrsl
cd pwrsl
make # Development build
make release # Release build for all platforms
make test_release # Release build for current platform
make clean # Clean up builds

Deployment process

When a PR is merged to master the following pipeline happens:

  • A new release and tag (version) are automatically created and pushed
  • Binaries for that release are built and uploaded as release assets

The CLI checks for new versions via the GitHub latest release API, and downloads updates via the release assets.

Documentation

Overview

Copyright © 2023 Kaz Walker <me@kaz.codes>

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.

Jump to

Keyboard shortcuts

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