Documentation ¶
Index ¶
Constants ¶
View Source
const ResetLine = "\r\033[K"
ResetLine returns the cursor to start of line and clean it
Variables ¶
This section is empty.
Functions ¶
func NewCmdLogout ¶
NewCmdLogout creates the `auth logout` command
func NewCmdStatus ¶
NewCmdStatus creates the `auth status` command
Types ¶
type AuthProvider ¶
type AuthProvider int
const ( AuthWithGithub AuthProvider = iota AuthWithGitlab )
func (AuthProvider) AuthorizeURL ¶
func (p AuthProvider) AuthorizeURL() string
AuthorizeURL returns the URL of the OAuth authorization endpoint
func (AuthProvider) ClientID ¶
func (p AuthProvider) ClientID() string
func (AuthProvider) Scopes ¶
func (p AuthProvider) Scopes() string
func (AuthProvider) String ¶
func (p AuthProvider) String() string
type LoginOptions ¶
type LogoutOptions ¶
Click to show internal directories.
Click to hide internal directories.