IsaacToolbelt
CLI tool for issac. It is inspired by heroku toolbelt.
Installation
$ brew brew install dfu-util coreutils gnu-getopt
$ brew tap jlhonora/lsusb && brew install lsusb
$ gem install specific_install
$ gem specific_install [email protected]:xshellinc/isaac_toolbelt.git
Usage
Connect your SBC with USB cable.
Show all commands
isaac help
Show device informations
isaac device info
Write access key
isaac device config YOUR_ACCESS_KEY
Show device logs
isaac device logs
Run an isaac app
cd path/to/isaac_project
vim main.py # At now, only the file named "main.py" is runnable.
isaac local start
Run a command with isaac environment
cd path/to/isaac_project
isaac local run python
Run shell on the SBC
isaac local console
Development
Setup
bundle install
Debug in pry
bin/console
then, you can access the instance of IsaacToolbelt::Device named device:
[1] pry(main)> device
=> #<IsaacToolbelt::Device:0x007ffbfa11f140
@_initializer=[[], {}, {}],
@_invocations={},
@args=[],
@options={},
@shell=#<Thor::Shell::Color:0x007ffbfa0a6fb0 @always_force=false, @base=#<IsaacToolbelt::Device:0x007ffbfa11f140 ...>, @mute=false, @padding=0>>
[2] pry(main)> cd device
[3] pry(#<IsaacToolbelt::Device>):1> ls
Thor::Base#methods: args args= options options= parent_options parent_options=
Thor::Invocation#methods: current_command_chain invoke invoke_all invoke_command invoke_task invoke_with_padding
Thor::Shell#methods: ask error file_collision no? print_in_columns print_table print_wrapped say say_status set_color shell shell= terminal_width with_padding yes?
IsaacToolbelt::Helper#methods: check_file config_network host mkdir_if_not reboot ssh_run_command temp_path transfer_files upload_string_as_file waitfor waitfor_network
IsaacToolbelt::Device#methods: _reboot config_access_key config_wifi help init show
self.methods: __pry__
instance variables: @_initializer @_invocations @args @options @shell
locals: _ __ _dir_ _ex_ _file_ _in_ _out_ _pry_
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/xshellinc/isaac_toolbelt.