assert

package module
v0.0.0-...-7cee44b Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: MIT Imports: 12 Imported by: 0

README

assert

Assert system state with descriptive methods in Golang

Install

To use the assert binary, execute this with a running Go setup:

go install github.com/jojomi/assert/cmd/assert@latest

Usage

The functions in the package github.com/jojomi/assert can be used as a library too.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommandExists

func CommandExists(args []string) (error, exit.Code)

func DayOfMonth

func DayOfMonth(args []string) (error, exit.Code)

func DirExists

func DirExists(args []string) (error, exit.Code)

func FileExists

func FileExists(args []string) (error, exit.Code)

func Mounted

func Mounted(args []string) (error, exit.Code)

func Must

func Must() error

func NonEmptyDir

func NonEmptyDir(args []string) (error, exit.Code)

func SSHReachable

func SSHReachable(args []string) (error, exit.Code)

func SSHReachableNonInteractive

func SSHReachableNonInteractive(args []string) (error, exit.Code)

func TimeAfter

func TimeAfter(args []string) (error, exit.Code)

func TimeBefore

func TimeBefore(args []string) (error, exit.Code)

func Weekday

func Weekday(args []string) (error, exit.Code)

Types

This section is empty.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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