Skip to content

Commit 59a6a57

Browse files
Group foundation commando's + Import route:list command
1 parent 0027ffc commit 59a6a57

3 files changed

Lines changed: 10 additions & 12 deletions

File tree

app/console/kernel.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ var flagGetters = func() []flag.Getter {
2222
func NewKernel(app inter.App) console.Kernel {
2323
return console.Kernel{
2424
App: app,
25-
Commands: []inter.Command{
26-
console.AppServe{},
27-
console.LogClear{},
28-
commands.ExampleCommand{},
29-
console.AppInfo{},
30-
},
25+
Commands: append(
26+
[]inter.Command{
27+
commands.ExampleCommand{},
28+
// Here you can add your own commands.
29+
}, console.FoundationCommands...,
30+
),
3131
FlagProviders: []func() []flag.Getter{flagGetters},
3232
}
3333
}

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.17
55
require (
66
github.com/confetti-framework/contract v0.3.0
77
github.com/confetti-framework/errors v0.11.0
8-
github.com/confetti-framework/foundation v0.10.5
8+
github.com/confetti-framework/foundation v0.11.0
99
github.com/confetti-framework/support v0.4.0
1010
github.com/confetti-framework/syslog v0.1.1
1111
github.com/confetti-framework/validation v0.1.0

go.sum

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ github.com/confetti-framework/contract v0.3.0/go.mod h1:5OkIQMwbkwfIfJjww2CJEHyI
1717
github.com/confetti-framework/errors v0.11.0-rc.1/go.mod h1:a59waUvDS3t8nOeqI0yQDrhILEicAvlca7Kbeilsrao=
1818
github.com/confetti-framework/errors v0.11.0 h1:rIOBgIpw5zGb25q5Pfg2cIk4vMCQb+Gs/kdaEze7BHY=
1919
github.com/confetti-framework/errors v0.11.0/go.mod h1:a59waUvDS3t8nOeqI0yQDrhILEicAvlca7Kbeilsrao=
20-
github.com/confetti-framework/foundation v0.10.5 h1:/zkh1hrZqw+M4zopUJJzq9RngdENvySGmG9WVfRr7O0=
21-
github.com/confetti-framework/foundation v0.10.5/go.mod h1:pAtE0ypRr5BZ5lnylFEPdr1QN2zOVhDHLPpa9DfnxIk=
20+
github.com/confetti-framework/foundation v0.11.0 h1:SbxErGj+Qe4sAoFUHTAs/owprBedsAayXlTuxJxtD/8=
21+
github.com/confetti-framework/foundation v0.11.0/go.mod h1:cQP9mTLOuoHjRsrS4gBEQOELgxGrnCGkqzkvlxZgSxE=
2222
github.com/confetti-framework/support v0.2.0-rc.1/go.mod h1:uwOTcc+vAtkzr5GihkCzjv11YVI15UJMhfU2HLRCk/A=
2323
github.com/confetti-framework/support v0.4.0 h1:C42pHjAYQRyRWSGh6WIqsXZA7W7SVeW59Z4wQNnRqvI=
2424
github.com/confetti-framework/support v0.4.0/go.mod h1:QRyVoK7322wmTnLhEzwmZKjVM4didk+w4DhpjaAI8Gc=
@@ -177,13 +177,11 @@ github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5
177177
github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
178178
github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY=
179179
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
180-
github.com/tidwall/gjson v1.7.5/go.mod h1:5/xDoumyyDNerp2U36lyolv46b3uF/9Bu6OfyQ9GImk=
180+
github.com/tidwall/gjson v1.9.3/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk=
181181
github.com/tidwall/gjson v1.11.0 h1:C16pk7tQNiH6VlCrtIXL1w8GaOsi1X3W8KDkE1BuYd4=
182182
github.com/tidwall/gjson v1.11.0/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk=
183-
github.com/tidwall/match v1.0.3/go.mod h1:eRSPERbgtNPcGhD8UCthc6PmLEQXEWd3PRB5JTxsfmM=
184183
github.com/tidwall/match v1.1.1 h1:+Ho715JplO36QYgwN9PGYNhgZvoUSc9X2c80KVTi+GA=
185184
github.com/tidwall/match v1.1.1/go.mod h1:eRSPERbgtNPcGhD8UCthc6PmLEQXEWd3PRB5JTxsfmM=
186-
github.com/tidwall/pretty v1.1.0/go.mod h1:XNkn88O1ChpSDQmQeStsy+sBenx6DDtFZJxhVysOjyk=
187185
github.com/tidwall/pretty v1.2.0 h1:RWIZEg2iJ8/g6fDDYzMpobmaoGh5OLl4AXtGUGPcqCs=
188186
github.com/tidwall/pretty v1.2.0/go.mod h1:ITEVvHYasfjBbM0u2Pg8T2nJnzm8xPwvNhhsoaGGjNU=
189187
github.com/uniplaces/carbon v0.1.6/go.mod h1:glebpttsTxh8fBbciRAy3WvLfhBVa8n7qfgDTMAuJ3Y=

0 commit comments

Comments
 (0)