middleware

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2018 License: BSD-3-Clause Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Chain

func Chain(funcs ...func(*cli.Context) error) func(*cli.Context) error

Chain allows easy sequential calling of BeforeFuncs and AfterFuncs. chain will exit on the first error seen.

func EnsureSession

func EnsureSession(_ *cli.Context) error

EnsureSession checks that the user has an active session

func EnsureTeamPrefs

func EnsureTeamPrefs(cliCtx *cli.Context) error

EnsureTeamPrefs ensures a team is set from the configuration or --team arguments. --me flag can be used to disable team verification.

func LoadDirPrefs

func LoadDirPrefs(ctx *cli.Context) error

LoadDirPrefs loads argument values from the .torus.json file

func LoadTeamPrefs

func LoadTeamPrefs(ctx *cli.Context) error

LoadTeamPrefs tries to load team from config or flag. If none is present, sets --me to true

Types

This section is empty.

Jump to

Keyboard shortcuts

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