Documentation
¶
Overview ¶
Package files is an internal package of twtr/cmd.
It provides helpers to access the file system.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create(file string) (io.ReadWriteCloser, error)
Create file with read/write permissions, useful for creating a new twtxt.txt file (or overwriting) to write to.
func Edit ¶
Edit a file in the system EDITOR, uses VISUAL over EDITOR if set.
Equivalent to:
$ sh -c "${VISUAL:-$EDITOR} <file>"
Returns any errors that occur.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.