Skip to content

shu-go/faker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.