What is it?
The Gobot CLI is a command line interface that provides several generators to help you get started writing your own Gobot Adaptors and Drivers.
How to install
go get -u github.com/hybridgroup/gobot/gobot
How can I use it?
The Gobot CLI tools are easy to use, designed to be intuitive, and offer contextual help regarding the commands you're using. Once you have the
gobot cli installed, the toolkit will be available at all times. To find all available commands, just run
Printing a list of available commands
NAME: gobot - Command Line Utility for Gobot USAGE: gobot [global options] command [command options] [arguments...] VERSION: 0.1 COMMANDS: generate Generate new Gobot skeleton project help, h Shows a list of commands or help for one command GLOBAL OPTIONS: --help, -h show help --version, -v print the version
What Gobot CLI commands are available?
If you have only installed gobot, the list of available commands is the one printed in the section above, let's review them one by one.
gobot generate [name]
Generates a new Gobot component or adaptor module.
gobot generate project test Creating /tmp/gobot-test Creating /tmp/gobot-test/examples Creating /tmp/gobot-test/test_driver.go Creating /tmp/gobot-test/test_driver_test.go Creating /tmp/gobot-test/test_adaptor.go Creating /tmp/gobot-test/test_adaptor_test.go Creating /tmp/gobot-test/examples/main.go Creating /tmp/gobot-test/README.md