Documentation ¶
Index ¶
- Variables
- func Base64(argv ...string) pipe.Pipe
- func Cat(argv ...string) pipe.Pipe
- func CatShowVisible() string
- func FileLastModified(argv ...string) pipe.Pipe
- func ForEachLine(s *pipe.State, args []string, f func(line []byte) ([]byte, error)) error
- func GitLastModified(argv ...string) pipe.Pipe
- func HTTPLastModified(argv ...string) pipe.Pipe
- func Head(argv ...string) pipe.Pipe
- func ParseTime(argv ...string) pipe.Pipe
- func Run(argv ...string) pipe.Pipe
- func RunArgs(cmd string, args ...string) pipe.Pipe
- func Wget(argv ...string) pipe.Pipe
- func Which(argv ...string) pipe.Pipe
- type Base64Cmd
- type CatCmd
- type FileLastModifiedCmd
- type GitLastModifiedCmd
- type HTTPLastModifiedCmd
- type HeadCmd
- type ParseTimeCmd
- type WgetCmd
- type WhichCmd
Constants ¶
This section is empty.
Variables ¶
View Source
var CmdMap = map[string]func(argv ...string) pipe.Pipe{ "wget": Wget, "which": Which, "base64": Base64, "cat": Cat, "head": Head, "gitLastModified": GitLastModified, "fileLastModified": FileLastModified, "strptime": ParseTime, }
Functions ¶
func CatShowVisible ¶
func CatShowVisible() string
func FileLastModified ¶
func FileLastModified(argv ...string) pipe.Pipe
func GitLastModified ¶
func GitLastModified(argv ...string) pipe.Pipe
GitLastModified returns the the last-modified timestamp of a given file or files
func HTTPLastModified ¶
func HTTPLastModified(argv ...string) pipe.Pipe
Types ¶
type FileLastModifiedCmd ¶
type FileLastModifiedCmd struct { }
func (*FileLastModifiedCmd) Flags ¶
func (cmd *FileLastModifiedCmd) Flags() *flag.FlagSet
func (*FileLastModifiedCmd) Name ¶
func (cmd *FileLastModifiedCmd) Name() string
func (*FileLastModifiedCmd) Run ¶
func (cmd *FileLastModifiedCmd) Run(s *pipe.State, argv []string) error
type GitLastModifiedCmd ¶
type GitLastModifiedCmd struct { }
func (*GitLastModifiedCmd) Flags ¶
func (cmd *GitLastModifiedCmd) Flags() *flag.FlagSet
func (*GitLastModifiedCmd) Name ¶
func (cmd *GitLastModifiedCmd) Name() string
func (*GitLastModifiedCmd) Run ¶
func (cmd *GitLastModifiedCmd) Run(s *pipe.State, args []string) error
type HTTPLastModifiedCmd ¶
type HTTPLastModifiedCmd struct { }
func (*HTTPLastModifiedCmd) Flags ¶
func (cmd *HTTPLastModifiedCmd) Flags() *flag.FlagSet
func (*HTTPLastModifiedCmd) Name ¶
func (cmd *HTTPLastModifiedCmd) Name() string
func (*HTTPLastModifiedCmd) Run ¶
func (cmd *HTTPLastModifiedCmd) Run(s *pipe.State, argv []string) error
type ParseTimeCmd ¶
func (*ParseTimeCmd) Flags ¶
func (cmd *ParseTimeCmd) Flags() *flag.FlagSet
func (*ParseTimeCmd) Name ¶
func (cmd *ParseTimeCmd) Name() string
func (*ParseTimeCmd) Run ¶
func (cmd *ParseTimeCmd) Run(s *pipe.State, argv []string) error
Click to show internal directories.
Click to hide internal directories.