Documentation ¶
Index ¶
Constants ¶
View Source
const ( EnvScrapboxToken = "SCRAPBOX_TOKEN" EnvScrapboxHost = "SCRAPBOX_HOST" EnvExpiration = "SCRAPBOX_EXPIRATION" EnvUserAgent = "SCRAPBOX_USER_AGENT" )
View Source
const ( EnvDebug = "SCRAPBOX_DEBUG" EnvLongRunTest = "SCRAPBOX_LONG_RUN_TEST" )
Variables ¶
View Source
var ( DebugMode = os.Getenv(EnvDebug) != "" LongRunTestMode = os.Getenv(EnvLongRunTest) != "" )
Functions ¶
Types ¶
type LinkCommand ¶
type LinkCommand struct {
Meta
}
func (*LinkCommand) FetchAllLinks ¶
func (*LinkCommand) Help ¶
func (c *LinkCommand) Help() string
func (*LinkCommand) Run ¶
func (c *LinkCommand) Run(args []string) int
func (*LinkCommand) Synopsis ¶
func (c *LinkCommand) Synopsis() string
type ListCommand ¶
type ListCommand struct {
Meta
}
func (*ListCommand) FetchRelatedPages ¶
func (*ListCommand) Help ¶
func (c *ListCommand) Help() string
func (*ListCommand) Run ¶
func (c *ListCommand) Run(args []string) int
func (*ListCommand) Synopsis ¶
func (c *ListCommand) Synopsis() string
type OpenCommand ¶
type OpenCommand struct {
Meta
}
func (*OpenCommand) BuildPageURL ¶
func (c *OpenCommand) BuildPageURL(host, project, page string) string
func (*OpenCommand) Help ¶
func (c *OpenCommand) Help() string
func (*OpenCommand) Run ¶
func (c *OpenCommand) Run(args []string) int
func (*OpenCommand) Synopsis ¶
func (c *OpenCommand) Synopsis() string
type ReadCommand ¶
type ReadCommand struct {
Meta
}
func (*ReadCommand) FetchContent ¶
func (*ReadCommand) Help ¶
func (c *ReadCommand) Help() string
func (*ReadCommand) Run ¶
func (c *ReadCommand) Run(args []string) int
func (*ReadCommand) Synopsis ¶
func (c *ReadCommand) Synopsis() string
type VersionCommand ¶
func (*VersionCommand) Help ¶
func (c *VersionCommand) Help() string
func (*VersionCommand) Run ¶
func (c *VersionCommand) Run(args []string) int
func (*VersionCommand) Synopsis ¶
func (c *VersionCommand) Synopsis() string
Click to show internal directories.
Click to hide internal directories.