Gocker run command

Main

Setup CLI command instance by using github.com/urfave/cli.

Main_command

Add two sub-commands into CLI command.

Run

runCommand will call this function.

graph TB
main[Main] -- has --> runCommand(runCommand)
main[Main] -- has --> initCommand(initCommand)


runCommand(runCommand) -- call --> run(Run)

initCommand(initCommand) -- call --> initProcess{RunContainerInitProcess}

run(Run) -- call --> NewParentProcess{NewParentProcess}

NewParentProcess{NewParentProcess} -- exec --> initCommand(initCommand)