selfupdate

package module
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: MIT Imports: 18 Imported by: 4

README

carapace-selfupdate

Simple self-update mechanism to install nightly/stable releases.

asciicast

Executable is installed to the GOBIN directory, essentially shadowing any system installation.

export PATH="$HOME/.local/bin:$HOME/go/bin:$PATH"
#            │                │            └system installation (e.g. /usr/bin/carapace)
#            │                └selfupdate/go based installation ($GOBIN)
#            └user binaries

Requirements

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command(owner, repository string, opts ...option) *cobra.Command

func New

func New(owner, repository string, opts ...option) *config

func WithAssetFilter

func WithAssetFilter(f func(s string) bool) func(c *config)

func WithBinary

func WithBinary(s string) func(c *config)

func WithForce added in v0.0.4

func WithForce(b bool) func(c *config)

func WithProgress

func WithProgress(w io.Writer) func(c *config)

func WithTransport

func WithTransport(t transport.Transport) func(c *config)

Types

This section is empty.

Directories

Path Synopsis
cmd module

Jump to

Keyboard shortcuts

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