Skip to content

Commit 730160b

Browse files
committed
Merge branch 'release/0.0.2'
2 parents e872f8c + 6b8445b commit 730160b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+2569
-29
lines changed

.goreleaser.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,32 @@
11
# This is an example goreleaser.yaml file with some sane defaults.
22
# Make sure to check the documentation at http://goreleaser.com
33
builds:
4-
-
5-
env:
6-
- CGO_ENABLED=0
4+
-
75
main: ./cmd/ligo/main.go
6+
env:
7+
- CGO_ENABLED=0
8+
goos:
9+
- darwin
10+
- linux
11+
- windows
12+
813
archive:
914
replacements:
1015
darwin: Darwin
1116
linux: Linux
1217
windows: Windows
1318
386: i386
1419
amd64: x86_64
20+
1521
checksum:
1622
name_template: 'checksums.txt'
23+
1724
snapshot:
1825
name_template: "{{ .Tag }}-next"
26+
1927
changelog:
2028
sort: asc
2129
filters:
2230
exclude:
23-
- '^docs:'
24-
- '^test:'
31+
- '^docs:'
32+
- '^test:'

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
11

2+
0.0.2 / 2018-09-30
3+
==================
4+
5+
* add windows to GoReleaser config
6+
* long desc update
7+
* adding command templates for events
8+
* adding command templates for tickets
9+
* adding command templates for account
10+
* adding command templates for volumes
11+
* adding command templates for nodebalancers
12+
* adding command templates for domains
13+
* update linodes var struct names so they dont conflict with other commands
14+
* adding MIT license
15+
* update root command to check homedir for config
16+
* move client.go to its own package dir
17+
218
0.0.1 / 2018-09-30
319
==================
420

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright © 2018 Andre Marcelo-Tanner <[email protected]>
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.
File renamed without changes.

cmd/ligo/cmd/account.go

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
// Copyright © 2018 Andre Marcelo-Tanner <[email protected]>
2+
//
3+
// Permission is hereby granted, free of charge, to any person obtaining a copy
4+
// of this software and associated documentation files (the "Software"), to deal
5+
// in the Software without restriction, including without limitation the rights
6+
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
// copies of the Software, and to permit persons to whom the Software is
8+
// furnished to do so, subject to the following conditions:
9+
//
10+
// The above copyright notice and this permission notice shall be included in
11+
// all copies or substantial portions of the Software.
12+
//
13+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19+
// THE SOFTWARE.
20+
21+
package cmd
22+
23+
import (
24+
"fmt"
25+
26+
"github.com/spf13/cobra"
27+
)
28+
29+
// accountCmd represents the account command
30+
var accountCmd = &cobra.Command{
31+
Use: "account",
32+
Short: "A brief description of your command",
33+
Long: `A longer description that spans multiple lines and likely contains examples
34+
and usage of using your command. For example:
35+
36+
Cobra is a CLI library for Go that empowers applications.
37+
This application is a tool to generate the needed files
38+
to quickly create a Cobra application.`,
39+
Run: func(cmd *cobra.Command, args []string) {
40+
fmt.Println("account called")
41+
},
42+
}
43+
44+
func init() {
45+
rootCmd.AddCommand(accountCmd)
46+
47+
// Here you will define your flags and configuration settings.
48+
49+
// Cobra supports Persistent Flags which will work for this command
50+
// and all subcommands, e.g.:
51+
// accountCmd.PersistentFlags().String("foo", "", "A help for foo")
52+
53+
// Cobra supports local flags which will only run when this command
54+
// is called directly, e.g.:
55+
// accountCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle")
56+
}
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
// Copyright © 2018 Andre Marcelo-Tanner <[email protected]>
2+
//
3+
// Permission is hereby granted, free of charge, to any person obtaining a copy
4+
// of this software and associated documentation files (the "Software"), to deal
5+
// in the Software without restriction, including without limitation the rights
6+
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
// copies of the Software, and to permit persons to whom the Software is
8+
// furnished to do so, subject to the following conditions:
9+
//
10+
// The above copyright notice and this permission notice shall be included in
11+
// all copies or substantial portions of the Software.
12+
//
13+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19+
// THE SOFTWARE.
20+
21+
package cmd
22+
23+
import (
24+
"fmt"
25+
26+
"github.com/spf13/cobra"
27+
)
28+
29+
// accountNotificationsListCmd represents the notificationsList command
30+
var accountNotificationsListCmd = &cobra.Command{
31+
Use: "notifications-list",
32+
Short: "A brief description of your command",
33+
Long: `A longer description that spans multiple lines and likely contains examples
34+
and usage of using your command. For example:
35+
36+
Cobra is a CLI library for Go that empowers applications.
37+
This application is a tool to generate the needed files
38+
to quickly create a Cobra application.`,
39+
Run: func(cmd *cobra.Command, args []string) {
40+
fmt.Println("account notifications-list called")
41+
},
42+
}
43+
44+
func init() {
45+
accountCmd.AddCommand(accountNotificationsListCmd)
46+
47+
// Here you will define your flags and configuration settings.
48+
49+
// Cobra supports Persistent Flags which will work for this command
50+
// and all subcommands, e.g.:
51+
// accountNotificationsListCmd.PersistentFlags().String("foo", "", "A help for foo")
52+
53+
// Cobra supports local flags which will only run when this command
54+
// is called directly, e.g.:
55+
// accountNotificationsListCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle")
56+
}

cmd/ligo/cmd/account_paymentcreate.go

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
// Copyright © 2018 Andre Marcelo-Tanner <[email protected]>
2+
//
3+
// Permission is hereby granted, free of charge, to any person obtaining a copy
4+
// of this software and associated documentation files (the "Software"), to deal
5+
// in the Software without restriction, including without limitation the rights
6+
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
// copies of the Software, and to permit persons to whom the Software is
8+
// furnished to do so, subject to the following conditions:
9+
//
10+
// The above copyright notice and this permission notice shall be included in
11+
// all copies or substantial portions of the Software.
12+
//
13+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19+
// THE SOFTWARE.
20+
21+
package cmd
22+
23+
import (
24+
"fmt"
25+
26+
"github.com/spf13/cobra"
27+
)
28+
29+
// accountPaymentCreateCmd represents the paymentCreate command
30+
var accountPaymentCreateCmd = &cobra.Command{
31+
Use: "payment-create",
32+
Short: "A brief description of your command",
33+
Long: `A longer description that spans multiple lines and likely contains examples
34+
and usage of using your command. For example:
35+
36+
Cobra is a CLI library for Go that empowers applications.
37+
This application is a tool to generate the needed files
38+
to quickly create a Cobra application.`,
39+
Run: func(cmd *cobra.Command, args []string) {
40+
fmt.Println("account payment-create called")
41+
},
42+
}
43+
44+
func init() {
45+
accountCmd.AddCommand(accountPaymentCreateCmd)
46+
47+
// Here you will define your flags and configuration settings.
48+
49+
// Cobra supports Persistent Flags which will work for this command
50+
// and all subcommands, e.g.:
51+
// accountPaymentCreateCmd.PersistentFlags().String("foo", "", "A help for foo")
52+
53+
// Cobra supports local flags which will only run when this command
54+
// is called directly, e.g.:
55+
// accountPaymentCreateCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle")
56+
}

cmd/ligo/cmd/account_settings.go

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
// Copyright © 2018 Andre Marcelo-Tanner <[email protected]>
2+
//
3+
// Permission is hereby granted, free of charge, to any person obtaining a copy
4+
// of this software and associated documentation files (the "Software"), to deal
5+
// in the Software without restriction, including without limitation the rights
6+
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
// copies of the Software, and to permit persons to whom the Software is
8+
// furnished to do so, subject to the following conditions:
9+
//
10+
// The above copyright notice and this permission notice shall be included in
11+
// all copies or substantial portions of the Software.
12+
//
13+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19+
// THE SOFTWARE.
20+
21+
package cmd
22+
23+
import (
24+
"fmt"
25+
26+
"github.com/spf13/cobra"
27+
)
28+
29+
// accountSettingsCmd represents the settings command
30+
var accountSettingsCmd = &cobra.Command{
31+
Use: "settings",
32+
Short: "A brief description of your command",
33+
Long: `A longer description that spans multiple lines and likely contains examples
34+
and usage of using your command. For example:
35+
36+
Cobra is a CLI library for Go that empowers applications.
37+
This application is a tool to generate the needed files
38+
to quickly create a Cobra application.`,
39+
Run: func(cmd *cobra.Command, args []string) {
40+
fmt.Println("account settings called")
41+
},
42+
}
43+
44+
func init() {
45+
accountCmd.AddCommand(accountSettingsCmd)
46+
47+
// Here you will define your flags and configuration settings.
48+
49+
// Cobra supports Persistent Flags which will work for this command
50+
// and all subcommands, e.g.:
51+
// accountSettingsCmd.PersistentFlags().String("foo", "", "A help for foo")
52+
53+
// Cobra supports local flags which will only run when this command
54+
// is called directly, e.g.:
55+
// accountSettingsCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle")
56+
}

cmd/ligo/cmd/account_view.go

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
// Copyright © 2018 Andre Marcelo-Tanner <[email protected]>
2+
//
3+
// Permission is hereby granted, free of charge, to any person obtaining a copy
4+
// of this software and associated documentation files (the "Software"), to deal
5+
// in the Software without restriction, including without limitation the rights
6+
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
// copies of the Software, and to permit persons to whom the Software is
8+
// furnished to do so, subject to the following conditions:
9+
//
10+
// The above copyright notice and this permission notice shall be included in
11+
// all copies or substantial portions of the Software.
12+
//
13+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19+
// THE SOFTWARE.
20+
21+
package cmd
22+
23+
import (
24+
"fmt"
25+
26+
"github.com/spf13/cobra"
27+
)
28+
29+
// accountViewCmd represents the view command
30+
var accountViewCmd = &cobra.Command{
31+
Use: "view",
32+
Short: "A brief description of your command",
33+
Long: `A longer description that spans multiple lines and likely contains examples
34+
and usage of using your command. For example:
35+
36+
Cobra is a CLI library for Go that empowers applications.
37+
This application is a tool to generate the needed files
38+
to quickly create a Cobra application.`,
39+
Run: func(cmd *cobra.Command, args []string) {
40+
fmt.Println("account view called")
41+
},
42+
}
43+
44+
func init() {
45+
accountCmd.AddCommand(accountViewCmd)
46+
47+
// Here you will define your flags and configuration settings.
48+
49+
// Cobra supports Persistent Flags which will work for this command
50+
// and all subcommands, e.g.:
51+
// accountViewCmd.PersistentFlags().String("foo", "", "A help for foo")
52+
53+
// Cobra supports local flags which will only run when this command
54+
// is called directly, e.g.:
55+
// accountViewCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle")
56+
}

0 commit comments

Comments
 (0)