command faker
f --add gitinit git init
f --add goinit go mod init
f
f gitinit
f --remove gitinit
f --add m.c calc
f m c
f --lock m.c
f --remove m.c #=> locked
f --add m.c notepad #=> locked
f --unlock m.c
copy f another.exe
another --add gitinit echo hoge hoge
f --add clip cmd /c echo "|" clip
f clip abc
Args like "abc" above goes to the first command (echo).
- exe path
- f.yaml
- Place the yaml in the same location as the executable.
- config directory
- {CONFIG_DIR}/faker/f.yaml
- Windows: %appdata%\faker\f.yaml
- (see https://cs.opensource.google/go/go/+/go1.17.3:src/os/file.go;l=457)
If none of 1,2 files exist, --add writes to 1.