bash

package
v0.1.16 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2023 License: MIT Imports: 5 Imported by: 3

Documentation

Overview

Package bash

Copyright © 2023 zcubbs https://github.com/zcubbs

Package bash

Copyright © 2023 zcubbs https://github.com/zcubbs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Chmod

func Chmod(path string, perm os.FileMode, debug bool) error

func DirExists

func DirExists(path string) bool

func ExecuteCmd

func ExecuteCmd(cmd string, output bool, args ...string) error

ExecuteCmd executes a command

func ExecuteCmdWithOutput

func ExecuteCmdWithOutput(command string, args ...string) (string, error)

ExecuteCmdWithOutput executes a command and returns the output

func ExecuteScript

func ExecuteScript(script string, output bool, commands ...string) (bool, error)

ExecuteScript executes a bash script

func ExtractTarGz

func ExtractTarGz(tarPath string, destPath string) error

func ExtractTarGzWithFile

func ExtractTarGzWithFile(tarPath string, file string, destPath string, debug bool) error

func FileExists

func FileExists(path string) bool

func Mkdir

func Mkdir(path string, perm os.FileMode) error

func RmDir

func RmDir(path string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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