Skip to content
This repository has been archived by the owner on May 18, 2021. It is now read-only.

Commit

Permalink
Add options to login cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
reverson committed May 1, 2018
1 parent 34aa761 commit 54cdf0a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import (
"io/ioutil"
"net/http"
"net/url"
"os"
"time"

"github.com/99designs/keyring"
analytics "github.com/segmentio/analytics-go"
Expand All @@ -28,6 +30,8 @@ var Stdout bool
func init() {
RootCmd.AddCommand(loginCmd)
loginCmd.Flags().BoolVarP(&Stdout, "stdout", "", false, "Print login URL to stdout instead of opening in default browser")
loginCmd.Flags().DurationVarP(&sessionTTL, "session-ttl", "t", time.Hour, "Expiration time for okta role session")
loginCmd.Flags().DurationVarP(&assumeRoleTTL, "assume-role-ttl", "a", time.Hour, "Expiration time for assumed role")
}

func loginPre(cmd *cobra.Command, args []string) {
Expand Down

0 comments on commit 54cdf0a

Please sign in to comment.