Documentation
¶
Index ¶
- func Attach(shell *ishell.Shell, cmd string) (f func(c *ishell.Context))
- func Cd(shell *ishell.Shell) (f func(c *ishell.Context))
- func Edit(shell *ishell.Shell) (f func(c *ishell.Context))
- func GetLongString(value t.Value) (text string, err error)
- func GetProtected(shell *ishell.Shell, defaultPassword string) (pw string, err error)
- func Ls(shell *ishell.Shell) (f func(c *ishell.Context))
- func Mv(shell *ishell.Shell) (f func(c *ishell.Context))
- func NewEntry(shell *ishell.Shell) (f func(c *ishell.Context))
- func NewGroup(shell *ishell.Shell) (f func(c *ishell.Context))
- func OpenFileInEditor(filename string) error
- func PromptAndSave(shell *ishell.Shell) error
- func Pwd(shell *ishell.Shell) (f func(c *ishell.Context))
- func Rm(shell *ishell.Shell) (f func(c *ishell.Context))
- func Save(shell *ishell.Shell) (f func(c *ishell.Context))
- func SaveAs(shell *ishell.Shell) (f func(c *ishell.Context))
- func Search(shell *ishell.Shell) (f func(c *ishell.Context))
- func Select(shell *ishell.Shell) (f func(c *ishell.Context))
- func Show(shell *ishell.Shell) (f func(c *ishell.Context))
- func TraversePath(d t.Database, startingLocation t.Group, fullPath string) (finalLocation t.Group, finalEntry t.Entry, err error)
- func Xp(shell *ishell.Shell) (f func(c *ishell.Context))
- func Xu(shell *ishell.Shell) (f func(c *ishell.Context))
- func Xw(shell *ishell.Shell) (f func(c *ishell.Context))
- func Xx(shell *ishell.Shell) (f func(c *ishell.Context))
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetProtected ¶
func OpenFileInEditor ¶
OpenFileInEditor opens filename in a text editor.
func PromptAndSave ¶
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 Search ¶
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 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
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.