2020-09-16 14:19:51 +00:00
|
|
|
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
2020-07-27 23:49:43 +00:00
|
|
|
|
|
|
|
package main
|
|
|
|
|
2021-08-14 00:19:32 +00:00
|
|
|
import (
|
|
|
|
"os"
|
|
|
|
|
|
|
|
"github.com/pkg/browser"
|
|
|
|
|
|
|
|
"go.pinniped.dev/cmd/pinniped/cmd"
|
|
|
|
)
|
|
|
|
|
|
|
|
//nolint: gochecknoinits
|
|
|
|
func init() {
|
|
|
|
// browsers like chrome like to write to our std out which breaks our JSON ExecCredential output
|
|
|
|
// thus we redirect the browser's std out to our std err
|
|
|
|
browser.Stdout = os.Stderr
|
|
|
|
}
|
2020-07-27 23:49:43 +00:00
|
|
|
|
|
|
|
func main() {
|
2020-09-12 00:56:05 +00:00
|
|
|
cmd.Execute()
|
2020-07-27 23:49:43 +00:00
|
|
|
}
|