install

package module
v0.0.0-...-f1cf1ee Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2022 License: Apache-2.0 Imports: 5 Imported by: 1

README

🌳 Install

GoDoc License

Get handful binaries on any system as fast as possible!

Install

This command can be installed as a standalone program or composed into a Bonzai command tree.

  • Standalone
go install github.com/murtaza-u/install/cmd/install@latest
  • Composed
package xyz

import (
	Z "github.com/rwxrob/bonzai/z"
	"github.com/murtaza-u/install"
)

var Cmd = &Z.Cmd{
	Name:     `z`,
	Commands: []*Z.Cmd{help.Cmd, install.Cmd},
}

Embedded Documentation

All documentation (like manual pages) has been embedded into the source code of the application. See the source or run the program with help to access it.

install help

Tab Completion

To activate bash completion just use the complete -C option from your .bashrc or command line. There is no messy sourcing required. All the completion is done by the program itself.

complete -C install install

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &Z.Cmd{
	Name:    "install",
	Summary: "Get handful binaries on any system as fast as possible",
	Description: `
		Bonzai branch to get handful binaries on any system as fast as
		possible
	`,
	Commands:  []*Z.Cmd{help.Cmd},
	Params:    []string{"kubectl", "minikube"},
	License:   "Apache-2.0",
	Source:    "https://github.com/murtaza-u/install",
	Issues:    "https://github.com/murtaza-u/install/issues",
	Copyright: "(c) Murtaza Udaipurwala <murtaza@murtazau.xyz> (murtazau.xyz)",
	Site:      "https://murtazau.xyz",
	MinParm:   1,
	Call: func(_ *Z.Cmd, args ...string) error {
		for _, arg := range args {
			var err error

			switch arg {
			case "kubectl":
				err = kubectl.Install()
			case "minikube":
				err = minikube.Install()
			default:
				err = fmt.Errorf("binary not supported: %s", arg)
			}

			if err != nil {
				return err
			}
		}
		return nil
	},
}

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
cmd
install command

Jump to

Keyboard shortcuts

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