context

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	// Username is the current user's username, matching the plan files folder name.
	Username string
	// Folder is the main folder complete path (default: ~/.carmack).
	Folder string
}

Context contains runtime info and is passed to every command handler.

func (*Context) UserFolder

func (c *Context) UserFolder() string

UserFolder returns the joined path of Folder and Username (e.g.: ~/.carmack/johndoe).

Jump to

Keyboard shortcuts

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