Skip to content

simple example in go how to execute the commands described in the yaml file

Notifications You must be signed in to change notification settings

lanixxfielmann/runfromyaml

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is the goal of the project?

Actually it's a playground and an attempt to write a tool with which I can both create documentation of the steps automatically, record all the necessary configurations and all the necessary commands that must be executed to achieve the goal.

#Why didn't I go with ansible?

My goal was to rewrite an existing bash tool in go. An essential part was a collection of all commands that need to be executed both inside the Docker container and outside the container to build the project. At the time, ansible was too complicated for that. This project is only one part, which only reads the commands from YAML and can execute them both outside and inside the container. Also conceivable are commands via SSH (Todo)

#HowTo build

go mod download
go build ./cmd/runfromyaml
go install runfromyaml

#HowTo execute

simple run pick commands.yaml in current directory and run all defined commands from this yaml file with descriptions

runfromyaml

you can select different yaml command collection with -file=myfile.yaml

runfromyaml -file=./other/path/my-collection.yaml

with more debug output

runfromyaml -file=my-collection.yaml -debug

About

simple example in go how to execute the commands described in the yaml file

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%