Skip to content

Kickr CLI for easy project kickstart generation

License

Notifications You must be signed in to change notification settings

kickr-dev/kickr

Repository files navigation

kickr

GitLab Release GitLab Issues GitLab License GitLab CICD Go Version Go Report Card

How to use ?

Go

go install github.com/kickr-dev/kickr/cmd/kickr@latest

Linux

OS="linux" # change it depending on your case
ARCH="amd64" # change it depending on your case
INSTALL_DIR="$HOME/.local/bin" # change it depending on your case

new_version=$(curl -fsSL "https://api.github.com/repos/kickr-dev/kickr/releases/latest" | jq -r '.tag_name')
url="https://github.com/kickr-dev/kickr/releases/download/$new_version/kickr_${OS}_${ARCH}.tar.gz"
curl -fsSL "$url" | (mkdir -p "/tmp/kickr/$new_version" && cd "/tmp/kickr/$new_version" && tar -xz)
cp "/tmp/kickr/$new_version/kickr" "$INSTALL_DIR/kickr"

Commands

Kickr initializes or generates kickr projects. Kickr projects are only defined by a .kickr file
and multiple files automatically generated to avoid multiple hours to setup Continuous Integration, coverage, security analyses, helm chart, etc.

Kickr generation can be done with 'kickr' command or 'kickr generate' command.
Additional generation command are available to generate only subparts of kickr layout (like 'kickr chart').

Usage:
  kickr [flags]
  kickr [command]

Available Commands:
  completion  Generate the autocompletion script for the specified shell
  generate    Generate project layout
  help        Help about any command
  init        Initialize kickr project
  version     Show current kickr version

Flags:
  -d, --dir string          set directory where generation will be made (default is current directory)
  -h, --help                help for kickr
      --log-format string   set logging format (either "text" or "json") (default "text")
      --log-level string    set logging level (default "info")

Use "kickr [command] --help" for more information about a command.

Init

Initialize new kickr project

Usage:
  kickr init [flags]

Flags:
  -h, --help   help for init

Global Flags:
  -d, --dir string          set directory where generation will be made (default is current directory)
      --log-format string   set logging format (either "text" or "json") (default "text")
      --log-level string    set logging level (default "info")

Generate

Generate project layout

Usage:
  kickr generate [flags]

Aliases:
  generate

Flags:
  -f, --force   force generation of all files initially created by kickr (README.md, SECURITY.md, etc.) even if the initial generated notice has been removed
  -h, --help    help for generate

Global Flags:
  -d, --dir string          set directory where generation will be made (default is current directory)
      --log-format string   set logging format (either "text" or "json") (default "text")
      --log-level string    set logging level (default "info")

Kickr file

TBD

About

Kickr CLI for easy project kickstart generation

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 7

Languages