Documentation ¶
Index ¶
Constants ¶
View Source
const (
DefaultEditor = "vi"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppendCmd ¶ added in v0.8.0
type AppendCmd struct { Path string `arg:"" help:"Post name or Post URL('https://<TEAM>.esa.io/posts/<NUM>' or '//<NUM>')."` Body string `short:"b" required:"" help:"Post body file to append." predictor:"file"` Prefix string `help:"Prefix text."` Notice bool `negatable:"" default:"true" help:"Post with notify."` }
type CatCmd ¶
type CatCmd struct {
Path string `arg:"" help:"Post name or Post URL('https://<TEAM>.esa.io/posts/<NUM>' or '//<NUM>')."`
}
type CommentCmd ¶ added in v0.8.0
type CpCmd ¶ added in v0.3.0
type CpCmd struct { Source string `arg:"" help:"Source post name/category/tag."` Target string `arg:"" help:"Target post/category."` Force bool `short:"f" default:"false" help:"Skip confirmation of files to move."` Notice bool `negatable:"" help:"Copy with notify."` Page int `short:"p" default:"1" help:"Page number."` Recursive bool `short:"r" default:"true" negatable:"" help:"Recursively list posts."` }
type EditCmd ¶ added in v0.9.0
type ImportCmd ¶ added in v1.5.0
type ImportCmd struct { Src string `arg:"" help:"Source file or directory (stdin:'-')."` Path string `arg:"" help:"Post name or Post URL('https://<TEAM>.esa.io/posts/<NUM>' or '//<NUM>')."` Notice bool `negatable:"" default:"true" help:"Post with notify."` Wip bool `negatable:"" help:"Post as WIP."` }
type InfoCmd ¶ added in v0.1.3
type InfoCmd struct {
Path string `arg:"" help:"Post name or Post URL('https://<TEAM>.esa.io/posts/<NUM>' or '//<NUM>')."`
}
type LsCmd ¶
type MvCmd ¶
type MvCmd struct { Source string `arg:"" help:"Source post name/category/tag."` Target string `arg:"" help:"Target post/category."` Search bool `short:"s" help:"Search posts. see https://docs.esa.io/posts/104"` Force bool `short:"f" help:"Skip confirmation of files to move."` Notice bool `negatable:"" help:"Move with notify."` Page int `short:"p" default:"1" help:"Page number."` Recursive bool `short:"r" default:"true" negatable:"" help:"Recursively list posts."` }
type MvcatCmd ¶
type OpenCmd ¶ added in v0.6.5
type OpenCmd struct {
Path string `arg:"" help:"Post name or Post URL('https://<TEAM>.esa.io/posts/<NUM>' or '//<NUM>')."`
}
type PostCmd ¶
type PostCmd struct { Name string `short:"n" help:"Post title."` Body string `short:"b" help:"Post body file." predictor:"file"` Path string `arg:"" optional:"" help:"Post number to update."` Tags []string `short:"t" help:"Post tags."` Category string `short:"c" help:"Post category."` Wip bool `negatable:"" help:"Post as WIP."` Message string `short:"m" help:"Post message."` Notice bool `negatable:"" help:"Post with notify."` }
type RmCmd ¶
type RmCmd struct { Path string `arg:"" help:"Source post name/category/tag."` Search bool `short:"s" help:"Search posts. see https://docs.esa.io/posts/104"` Force bool `short:"f" help:"Skip confirmation of files to delete."` Page int `short:"p" default:"1" help:"Page number."` Recursive bool `short:"r" default:"true" negatable:"" help:"Recursively list posts."` }
type RmiCmd ¶ added in v0.4.0
type SearchCmd ¶
type TagCmd ¶ added in v0.4.2
type TagCmd struct { Path string `arg:"" help:"Post name/Post category/Post tag."` Tags []string `short:"t" help:"Post tags."` Override bool `short:"o" help:"Override tags."` Delete bool `short:"d" help:"Delete tags."` Search bool `short:"s" help:"Search posts. see https://docs.esa.io/posts/104"` Force bool `short:"f" help:"Skip confirmation of files to move."` Notice bool `negatable:"" help:"Tagging with notify."` Page int `short:"p" default:"1" help:"Page number."` Recursive bool `short:"r" default:"true" negatable:"" help:"Recursively list posts."` }
type TagsCmd ¶ added in v0.9.9
type TagsCmd struct {
Page int `short:"p" default:"1" help:"Page number."`
}
type TouchCmd ¶ added in v0.9.11
type UnwipCmd ¶ added in v1.5.0
type UnwipCmd struct { Path string `arg:"" help:"Post name/Post category/Post tag."` Search bool `short:"s" help:"Search posts. see https://docs.esa.io/posts/104"` Force bool `short:"f" help:"Skip confirmation of files to move."` Notice bool `negatable:"" help:"Unwip with notify."` Page int `short:"p" default:"1" help:"Page number."` Recursive bool `short:"r" default:"true" negatable:"" help:"Recursively list posts."` }
type WipCmd ¶ added in v1.5.0
type WipCmd struct { Path string `arg:"" help:"Post name/Post category/Post tag."` Search bool `short:"s" help:"Search posts. see https://docs.esa.io/posts/104"` Force bool `short:"f" help:"Skip confirmation of files to move."` Notice bool `negatable:"" help:"Unwip with notify."` Page int `short:"p" default:"1" help:"Page number."` Recursive bool `short:"r" default:"true" negatable:"" help:"Recursively list posts."` }
Click to show internal directories.
Click to hide internal directories.