Skip to content

Commit

Permalink
Add some comments to exported public functions
Browse files Browse the repository at this point in the history
Signed-off-by: deadprogram <[email protected]>
  • Loading branch information
deadprogram committed Mar 22, 2017
1 parent aea2b6c commit 05802c7
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 7 deletions.
13 changes: 7 additions & 6 deletions commands/arduino.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,17 @@ func uploadParams(board string) (string, string) {
}
}

// Arduino function returns the CLI commands for gort arduino
func Arduino() cli.Command {
return cli.Command{
Name: "arduino",
Usage: "Install avrdude, and upload HEX files to your Arduino",
Flags: []cli.Flag {
cli.StringFlag{
Name: "board, b",
Value: "uno",
Usage: "board type of arduino",
},
Flags: []cli.Flag{
cli.StringFlag{
Name: "board, b",
Value: "uno",
Usage: "board type of arduino",
},
},
Action: func(c *cli.Context) {
valid := false
Expand Down
1 change: 1 addition & 0 deletions commands/bluetooth.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"github.com/codegangsta/cli"
)

// Bluetooth function returns the CLI commands for gort bluetooth
func Bluetooth() cli.Command {
return cli.Command{
Name: "bluetooth",
Expand Down
4 changes: 3 additions & 1 deletion commands/crazyflie.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ package commands

import (
"fmt"
"github.com/codegangsta/cli"
"os"
"runtime"

"github.com/codegangsta/cli"
)

// Crazyflie function returns the CLI commands for gort crazyflie
func Crazyflie() cli.Command {
return cli.Command{
Name: "crazyflie",
Expand Down
1 change: 1 addition & 0 deletions commands/digispark.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"github.com/codegangsta/cli"
)

// Digispark function returns the CLI commands for gort digispark
func Digispark() cli.Command {
return cli.Command{
Name: "digispark",
Expand Down
2 changes: 2 additions & 0 deletions commands/klaatu.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ package commands

import (
"fmt"

"github.com/codegangsta/cli"
)

// Klaatu function returns the CLI commands for gort klaatu
func Klaatu() cli.Command {
return cli.Command{
Name: "klaatu",
Expand Down
1 change: 1 addition & 0 deletions commands/microbit.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"github.com/codegangsta/cli"
)

// Microbit function returns the CLI commands for gort microbit
func Microbit() cli.Command {
return cli.Command{
Name: "microbit",
Expand Down
1 change: 1 addition & 0 deletions commands/particle.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
"github.com/codegangsta/cli"
)

// Particle function returns the CLI commands for gort particle
func Particle() cli.Command {
return cli.Command{
Name: "particle",
Expand Down
1 change: 1 addition & 0 deletions commands/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
"github.com/codegangsta/cli"
)

// Scan function returns the CLI commands for gort scan
func Scan() cli.Command {
return cli.Command{
Name: "scan",
Expand Down
1 change: 1 addition & 0 deletions version.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package main

// VERSION of the software
const VERSION = "0.8.0"

0 comments on commit 05802c7

Please sign in to comment.