cmd

package
v0.1.1-beta Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2022 License: GPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Verbose bool

	SmarthomeURL   string
	SessionCookies []*http.Cookie

	Username string
	Password string
)

Functions

func Execute

func Execute()

func Login

func Login()

Tests if the provided credentials are valid

func PromptLogin

func PromptLogin()

The login function prompts the user to enter his password and username (if not provided via flag)

Types

type LoginRequest

type LoginRequest struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL