cmd

package
v0.4.9-beta Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2022 License: MIT Imports: 25 Imported by: 0

Documentation

Overview

Copyright © 2022 Nottimisreal

Copyright © 2022 NAME HERE <EMAIL ADDRESS>

Copyright © 2022 NAME HERE <EMAIL ADDRESS>

Copyright © 2022 NotTimIsReal

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DepTrackerAdd

func DepTrackerAdd(pkg string, isDep bool, installedBy string)

func DirSize

func DirSize(path string) (int64, error)

func DownloadFromGithub

func DownloadFromGithub(url string, path string, verbose string) error

func DownloadFromTar

func DownloadFromTar(pkg string, url string, verbose string, spinner *spinner.Spinner) string

func DownloadInstructions

func DownloadInstructions(pkg string)

func EditDepsTracker

func EditDepsTracker(pkg string, roots string)

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func GetDownloadUrl

func GetDownloadUrl(pkg string, verbose string, s *spinner.Spinner) string

func GetGitURL

func GetGitURL(pkg string, verbose string) string

func GetUninstallInstructions

func GetUninstallInstructions(pkg string, force bool)

func InstallBinary

func InstallBinary(pkg string, verbose string) string

func InstallPrebuilds

func InstallPrebuilds(pkg string)

func IsLib

func IsLib(pkg string) bool

func IsUrl

func IsUrl(str string) bool

func ListAllNormalPackages

func ListAllNormalPackages()

func RunInstallationScript

func RunInstallationScript(pkg string, verbose string, cwd string)

func SearchForPackages

func SearchForPackages(pkg string)

func TestInstallationScript

func TestInstallationScript(pkg string, verbose string) bool

func Untar

func Untar(dst string, downloadedFile string, pkg string) error

func UsingGit

func UsingGit(pkg string, verbose string) bool

Types

type Config

type Config struct {
	Version string `json:"version"`
}

type Dep

type Dep struct {
	LastUpdated int64
	Deps        []deps
}

Jump to

Keyboard shortcuts

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