feat(cli): init cli (#3186)

* feat(cli): initilize cli

* fix(config): allow multiple files

* refactor(cli): constructor naming

* go mod tidy

* refactor: move code out of v2 package

* chore: logging v0.1

* chore: remove old gitignore

* fix func

Co-authored-by: Livio Amstutz <livio.a@gmail.com>
This commit is contained in:
Silvan
2022-02-09 15:01:19 +01:00
committed by GitHub
parent 699fdaf68e
commit 9d471d0d30
29 changed files with 334 additions and 2600 deletions

14
main.go Normal file
View File

@@ -0,0 +1,14 @@
package main
import (
"os"
"github.com/caos/zitadel/cmd"
"github.com/spf13/cobra"
)
func main() {
args := os.Args[1:]
rootCmd := cmd.New(os.Stdout, os.Stdin /*, int(os.Stdin.Fd())*/, args)
cobra.CheckErr(rootCmd.Execute())
}