I’m creating the following repo which use Go command line tools cobra
to generate some artifacts , while run the command
go run main.go mzr convert toJSON ./
the program take the yaml file and
generate from it json file.
Now I want that my repo will Behave like the following command lines tool (user can install it and run help and use the tool supported commands)
That the user will be able to install mzr
and will be able to run the
command's inside like in the dep
repository when user run dep init
,
In my case user should run
mzr convert toJSON path/to/yaml/
This is my repository
https://github.com/NinaWatcher/mzr
I’ve the file.yaml
inside the root (and the output json for testing only) but the user should provide the path to the file.
The logic is inside the file: cmd/commands/convert.go
I try to do it with creating make.sh file (see the results in build folder) which create executable files for several OS but when I take the files and try to run it on mac and windows its not working either, what should I do here ?