local

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package local provides procedures to run commands and do things on the local system.

Index

Constants

This section is empty.

Variables

View Source
var ErrUnsupported = fmt.Errorf("unsupported OS")

Functions

func CreateShortcut

func CreateShortcut() (string, error)

func OpenCmd

func OpenCmd(ctx context.Context, cmd ...string) error

OpenCmd opens anything.

func OpenFile

func OpenFile(ctx context.Context, filePath string) error

OpenFile open Config Files.

func OpenFolder

func OpenFolder(ctx context.Context, filePath string) error

OpenFolder opens a folder in Finder.

func OpenLog

func OpenLog(_ context.Context, _ string) error

OpenLog opens Log Files.

func StartCmd

func StartCmd(ctx context.Context, c string, v ...string) error

StartCmd starts a command.

Types

This section is empty.

Jump to

Keyboard shortcuts

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