pkg

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecCommandInDir

func ExecCommandInDir(name, dir string, args ...string) (err error)

ExecCommandInDir run a command in a directory

func ExecCommandWithOutput

func ExecCommandWithOutput(name, dir string, args ...string) (output string, err error)

ExecCommandWithOutput run a command than returns the output

func ParseShortCode added in v0.0.12

func ParseShortCode(args []string, output func(string) string) []string

ParseShortCode parses a short org/repo to a GitHub URL

func ParseShortCodeWithProtocol added in v0.0.13

func ParseShortCodeWithProtocol(args []string, protocol string, output func(string) string) []string

ParseShortCodeWithProtocol parses a short org/repo with protocol

func UseMirror added in v0.0.12

func UseMirror(args []string)

UseMirror modify the args with a GitHub mirror

Types

This section is empty.

Jump to

Keyboard shortcuts

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