utils

package
v0.0.0-...-6731bbc Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2019 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddQL

func AddQL(ql QuickLink) error

AddQL Add quicklink to the store

func Commander

func Commander(args []string) error

Commander Function that handles incoming CLI commands

func RemoveQL

func RemoveQL(name string) error

RemoveQL Remove a quicklink from the store

Types

type QuickLink struct {
	Name string `json:"name"`
	Path string `json:"path"`
}

QuickLink A single QuickLink

func GetQLs

func GetQLs() ([]QuickLink, error)

GetQLs get all quicklinks from the store file

type QuickLinks struct {
	Links []QuickLink `json:"links"`
}

QuickLinks The struct that represents the store

Jump to

Keyboard shortcuts

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