exec

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunCMD

func RunCMD(fs string) error

RunCMD runs a command in the shell

Parameters:

  • fs: the command to run

Returns:

  • error: an error if the command fails

func RunLooseCMD

func RunLooseCMD(fs string)

RunLooseCMD runs a command in the shell without returning anything

Parameters:

  • fs: the command to run

func RunReallyLooseCMD

func RunReallyLooseCMD(fs string)

RunReallyLooseCMD runs a command in the shell without returning anything and without waiting for the command to finish

Parameters:

  • fs: the command to run

func RunReturnCMD

func RunReturnCMD(fs string) (string, error)

RunReturnCMD runs a command in the shell and returns the output

Parameters:

  • fs: the command to run

Returns:

  • string: the output of the command
  • error: an error if the command fails

Types

This section is empty.

Jump to

Keyboard shortcuts

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