-
Notifications
You must be signed in to change notification settings - Fork 9
/
main.go
31 lines (28 loc) · 1.07 KB
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright 2022 Namespace Labs Inc; All rights reserved.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
package main
import (
"github.com/spf13/cobra"
"namespacelabs.dev/foundation/internal/cli/cmd"
"namespacelabs.dev/foundation/internal/cli/cmd/cluster"
"namespacelabs.dev/foundation/internal/cli/cmd/debug"
"namespacelabs.dev/foundation/internal/cli/cmd/eks"
"namespacelabs.dev/foundation/internal/cli/cmd/nsbuild"
"namespacelabs.dev/foundation/internal/cli/cmd/source"
"namespacelabs.dev/foundation/internal/cli/fncobra/ns"
)
func main() {
ns.DoMain("nsdev", false, func(root *cobra.Command) {
cmd.RegisterCommands(root)
root.AddCommand(debug.NewDebugCmd())
root.AddCommand(debug.NewFnServicesCmd())
root.AddCommand(eks.NewEksCmd())
root.AddCommand(cmd.NewImagesCmd())
root.AddCommand(cluster.NewClusterCmd(false))
root.AddCommand(cmd.NewLintCmd())
root.AddCommand(source.NewSourceCmd())
root.AddCommand(cmd.NewUseCmd())
root.AddCommand(nsbuild.NewNsBuildCmd())
})
}