θΏ™ζ˜―indexlocζδΎ›ηš„ζœεŠ‘οΌŒδΈθ¦θΎ“ε…₯任何密码
Skip to content

Odas0R/run-cmd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

cmd

Simple command line interface template for creating internal CLI's πŸ’»

Structure

β”œβ”€β”€ cmd
β”‚Β Β  └── {cmd_name}
β”‚Β Β      └── main.go
β”œβ”€β”€ {cmd_name}.go
β”œβ”€β”€ {cmd_sub_name}.go
β”œβ”€β”€ ...
β”œβ”€β”€ go.mod
β”œβ”€β”€ go.sum
β”œβ”€β”€ LICENSE
β”œβ”€β”€ Makefile
β”œβ”€β”€ pkg
β”‚Β Β  β”œβ”€β”€ config
β”‚Β Β  β”‚Β Β  └── config.go
β”‚Β Β  β”œβ”€β”€ dir
β”‚Β Β  β”‚Β Β  └── dir.go
β”‚Β Β  β”œβ”€β”€ editor
β”‚Β Β  β”‚Β Β  └── editor.go
β”‚Β Β  β”œβ”€β”€ fs
β”‚Β Β  β”‚Β Β  └── fs.go
β”‚Β Β  └── shell
β”‚Β Β      └── shell.go
└── README.md

The layout consists on the pkg directory which has all the dependencies that I need for creating custom CLI's and the cmd directory which just executes the cmd package which is all the {cmd_name}.go, {cmd_sub_name}.go files...

The config pkg works as a getter and setter of json, where you can config.Query() and config.Set() on a specific config path.

conf := c.Conf{
  Id:   "{cmd_name}",
  Dir:  "{configs_path}",
  File: "config.json",
}

References

  1. https://github.com/Odas0R/pomo-cmd

Credits

  1. https://github.com/rwxrob/conf
  2. https://github.com/rwxrob

About

Run aliases in a more interactively way using `fzf` πŸ”

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published