File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ Collection of tools to make working with CircuitPython boards easier.
8
8
9
9
Usage:
10
10
$( basename $0 ) -h # show this message
11
+ $( basename $0 ) open # open USB device in Finder
11
12
$( basename $0 ) build # make _build folder, ready for deployment
12
13
$( basename $0 ) deploy # actually deploy ^ to device
13
14
$( basename $0 ) watch # watch for changes to automatically build and deploy
@@ -91,6 +92,10 @@ function _eject() {
91
92
diskutil eject CIRCUITPY
92
93
}
93
94
95
+ function _open() {
96
+ open " $device "
97
+ }
98
+
94
99
if [ -z " $COMMAND " ]; then
95
100
help
96
101
exit
106
111
107
112
if [ " $COMMAND " == " build" ]; then
108
113
_build
114
+ elif [ " $COMMAND " == " open" ]; then
115
+ _open
109
116
elif [ " $COMMAND " == " deploy" ]; then
110
117
_deploy
111
118
elif [ " $COMMAND " == " watch" ]; then
You can’t perform that action at this time.
0 commit comments