move all command related logic go command.go