Skip to content

Commit 398a2e6

Browse files
committed
Format code
Signed-off-by: David Gageot <[email protected]>
1 parent c6c806e commit 398a2e6

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

cmd/docker-mcp/commands/config.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ func configCommand(docker docker.Client) *cobra.Command {
3131
return nil
3232
},
3333
})
34+
3435
cmd.AddCommand(&cobra.Command{
3536
Use: "write",
3637
Short: "Write the configuration",
@@ -39,6 +40,7 @@ func configCommand(docker docker.Client) *cobra.Command {
3940
return config.WriteConfig([]byte(args[0]))
4041
},
4142
})
43+
4244
cmd.AddCommand(&cobra.Command{
4345
Use: "reset",
4446
Short: "Reset the configuration",
@@ -47,6 +49,7 @@ func configCommand(docker docker.Client) *cobra.Command {
4749
return config.WriteConfig(nil)
4850
},
4951
})
52+
5053
cmd.AddCommand(&cobra.Command{
5154
Use: "dump",
5255
Short: "Dump the whole configuration",
@@ -61,6 +64,7 @@ func configCommand(docker docker.Client) *cobra.Command {
6164
return nil
6265
},
6366
})
67+
6468
cmd.AddCommand(&cobra.Command{
6569
Use: "restore",
6670
Short: "Restore the whole configuration",

cmd/docker-mcp/commands/server.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ func serverCommand(docker docker.Client) *cobra.Command {
5858
return server.Enable(cmd.Context(), docker, args)
5959
},
6060
})
61+
6162
cmd.AddCommand(&cobra.Command{
6263
Use: "disable",
6364
Aliases: []string{"remove", "rm"},
@@ -67,6 +68,7 @@ func serverCommand(docker docker.Client) *cobra.Command {
6768
return server.Disable(cmd.Context(), docker, args)
6869
},
6970
})
71+
7072
cmd.AddCommand(&cobra.Command{
7173
Use: "inspect",
7274
Short: "Get information about a server",
@@ -86,6 +88,7 @@ func serverCommand(docker docker.Client) *cobra.Command {
8688
return nil
8789
},
8890
})
91+
8992
cmd.AddCommand(&cobra.Command{
9093
Use: "reset",
9194
Short: "Disable all the servers",

cmd/docker-mcp/commands/tools.go

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@ func toolsCommand() *cobra.Command {
1212
Short: "List/count/call MCP tools",
1313
}
1414

15-
var version string
16-
var verbose bool
17-
var format string
18-
var gatewayArgs []string
15+
var (
16+
version string
17+
verbose bool
18+
format string
19+
gatewayArgs []string
20+
)
1921
cmd.PersistentFlags().StringVar(&version, "version", "2", "Version of the gateway")
2022
cmd.PersistentFlags().BoolVar(&verbose, "verbose", false, "Verbose output")
2123
cmd.PersistentFlags().StringVar(&format, "format", "list", "Output format (json|list)")
@@ -30,6 +32,7 @@ func toolsCommand() *cobra.Command {
3032
return tools.List(cmd.Context(), version, gatewayArgs, verbose, "list", "", format)
3133
},
3234
})
35+
3336
cmd.AddCommand(&cobra.Command{
3437
Use: "count",
3538
Short: "count tools",
@@ -38,6 +41,7 @@ func toolsCommand() *cobra.Command {
3841
return tools.List(cmd.Context(), version, gatewayArgs, verbose, "count", "", format)
3942
},
4043
})
44+
4145
cmd.AddCommand(&cobra.Command{
4246
Use: "inspect",
4347
Short: "inspect a tool",

0 commit comments

Comments
 (0)