-
Notifications
You must be signed in to change notification settings - Fork 8
/
main.go
28 lines (24 loc) · 953 Bytes
/
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
// 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"
ia "namespacelabs.dev/foundation/internal/auth"
"namespacelabs.dev/foundation/internal/cli/cmd/cluster"
"namespacelabs.dev/foundation/internal/cli/fncobra"
"namespacelabs.dev/foundation/internal/providers/nscloud/api"
)
func main() {
fncobra.DoMain(fncobra.MainOpts{
Name: "docker-credential-nsc",
RegisterCommands: func(root *cobra.Command) {
api.SetupFlags("", root.PersistentFlags(), false)
ia.SetupFlags(root.PersistentFlags())
root.AddCommand(cluster.NewDockerCredHelperStoreCmd(false))
root.AddCommand(cluster.NewDockerCredHelperGetCmd(false))
root.AddCommand(cluster.NewDockerCredHelperListCmd(false))
root.AddCommand(cluster.NewDockerCredHelperEraseCmd(false))
},
})
}