commands

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2022 License: ISC Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Attach

func Attach(shell *ishell.Shell, cmd string) (f func(c *ishell.Context))

func Cd

func Cd(shell *ishell.Shell) (f func(c *ishell.Context))

func Edit

func Edit(shell *ishell.Shell) (f func(c *ishell.Context))

func GetLongString

func GetLongString(value t.Value) (text string, err error)

func GetProtected

func GetProtected(shell *ishell.Shell, defaultPassword string) (pw string, err error)

func Ls

func Ls(shell *ishell.Shell) (f func(c *ishell.Context))

func Mv

func Mv(shell *ishell.Shell) (f func(c *ishell.Context))

func NewEntry

func NewEntry(shell *ishell.Shell) (f func(c *ishell.Context))

func NewGroup

func NewGroup(shell *ishell.Shell) (f func(c *ishell.Context))

func OpenFileInEditor

func OpenFileInEditor(filename string) error

OpenFileInEditor opens filename in a text editor.

func PromptAndSave

func PromptAndSave(shell *ishell.Shell) error

promptAndSave prompts the user to save and returns whether or not they agreed to do so. it also makes sure that there's actually a path to save to

func Pwd

func Pwd(shell *ishell.Shell) (f func(c *ishell.Context))

func Rm

func Rm(shell *ishell.Shell) (f func(c *ishell.Context))

func Save

func Save(shell *ishell.Shell) (f func(c *ishell.Context))

func SaveAs

func SaveAs(shell *ishell.Shell) (f func(c *ishell.Context))
func Search(shell *ishell.Shell) (f func(c *ishell.Context))

This implements the equivalent of kpcli's "find" command, just with a name that won't be confused for the shell command of the same name

func Select

func Select(shell *ishell.Shell) (f func(c *ishell.Context))

func Show

func Show(shell *ishell.Shell) (f func(c *ishell.Context))

func TraversePath

func TraversePath(d t.Database, startingLocation t.Group, fullPath string) (finalLocation t.Group, finalEntry t.Entry, err error)

TraversePath, given a starting location and a UNIX-style path, will walk the path and return the final location or an error if the path points to an entry, the parent group is returned as well as the entry. If the path points to a group, the entry will be nil

func Xk

func Xk(shell *ishell.Shell) (f func(c *ishell.Context))

func Xp

func Xp(shell *ishell.Shell) (f func(c *ishell.Context))

func Xu

func Xu(shell *ishell.Shell) (f func(c *ishell.Context))

func Xw

func Xw(shell *ishell.Shell) (f func(c *ishell.Context))

func Xx

func Xx(shell *ishell.Shell) (f func(c *ishell.Context))

Types

This section is empty.

Jump to

Keyboard shortcuts

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