faker

command module
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: BSD-2-Clause-Views Imports: 17 Imported by: 0

README

command faker

Go Report Card MIT License

Usage

add (replace) a command

f --add gitinit git init
f --add goinit go mod init

list commands

f

run a command

f gitinit

remove a command

f --remove gitinit

add sub command

f --add m.c calc
f m c

lock/unlock command

f --lock m.c
f --remove m.c #=> locked
f --add m.c notepad #=> locked

f --unlock m.c

make another faker

copy f another.exe
another --add gitinit echo hoge hoge

piping process

f --add clip cmd /c echo "|" clip

f clip abc

Args like "abc" above goes to the first command (echo).

config dir:

  1. exe path
    • f.yaml
    • Place the yaml in the same location as the executable.
  2. config directory

If none of 1,2 files exist, --add writes to 1.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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