Documentation
¶
Overview ¶
Package repl defines the dclish commands and implements the actions and defines the REPL to get the commands.
Index ¶
- func ActionAdd(cmd *dclish.Command) error
- func ActionBack(_ *dclish.Command) error
- func ActionChange(cmd *dclish.Command) error
- func ActionCopy(cmd *dclish.Command) error
- func ActionCreate(cmd *dclish.Command) error
- func ActionCurrent(_ *dclish.Command) error
- func ActionDelete(cmd *dclish.Command) error
- func ActionDirectory(cmd *dclish.Command) error
- func ActionExit(_ *dclish.Command) error
- func ActionFirst(_ *dclish.Command) error
- func ActionForward(_ *dclish.Command) error
- func ActionHelp(cmd *dclish.Command) error
- func ActionIndex(cmd *dclish.Command) error
- func ActionLast(_ *dclish.Command) error
- func ActionMail(_ *dclish.Command) error
- func ActionMark(cmd *dclish.Command) error
- func ActionModify(cmd *dclish.Command) error
- func ActionMove(cmd *dclish.Command) error
- func ActionNext(_ *dclish.Command) error
- func ActionPrint(cmd *dclish.Command) error
- func ActionQuit(_ *dclish.Command) error
- func ActionRead(cmd *dclish.Command) error
- func ActionRemove(cmd *dclish.Command) error
- func ActionReply(cmd *dclish.Command) error
- func ActionRespond(_ *dclish.Command) error
- func ActionSSH(cmd *dclish.Command) error
- func ActionSSHAdd(cmd *dclish.Command) error
- func ActionSSHDelete(cmd *dclish.Command) error
- func ActionSSHFetch(cmd *dclish.Command) error
- func ActionSSHList(cmd *dclish.Command) error
- func ActionSearch(cmd *dclish.Command) error
- func ActionSeen(cmd *dclish.Command) error
- func ActionSelect(cmd *dclish.Command) error
- func ActionSet(cmd *dclish.Command) error
- func ActionSetAccess(cmd *dclish.Command) error
- func ActionSetAlways(_ *dclish.Command) error
- func ActionSetBrief(cmd *dclish.Command) error
- func ActionSetDefaultExpire(cmd *dclish.Command) error
- func ActionSetExpireLimit(cmd *dclish.Command) error
- func ActionSetNoPromptExpire(_ *dclish.Command) error
- func ActionSetNoReadNew(cmd *dclish.Command) error
- func ActionSetNoShowNew(cmd *dclish.Command) error
- func ActionSetNoaccess(cmd *dclish.Command) error
- func ActionSetNoalways(_ *dclish.Command) error
- func ActionSetNobrief(cmd *dclish.Command) error
- func ActionSetNosystem(_ *dclish.Command) error
- func ActionSetPromptExpire(_ *dclish.Command) error
- func ActionSetReadNew(cmd *dclish.Command) error
- func ActionSetShowNew(cmd *dclish.Command) error
- func ActionSetSystem(_ *dclish.Command) error
- func ActionShow(cmd *dclish.Command) error
- func ActionShowFlags(_ *dclish.Command) error
- func ActionShowFolder(cmd *dclish.Command) error
- func ActionShowNew(_ *dclish.Command) error
- func ActionShowPrivileges(_ *dclish.Command) error
- func ActionShowUser(cmd *dclish.Command) error
- func ActionShowVersion(_ *dclish.Command) error
- func ActionUnmark(cmd *dclish.Command) error
- func ActionUnseen(cmd *dclish.Command) error
- func ActionUser(cmd *dclish.Command) error
- func ActionUserAdd(cmd *dclish.Command) error
- func ActionUserAdmin(cmd *dclish.Command) error
- func ActionUserDelete(cmd *dclish.Command) error
- func ActionUserDisable(cmd *dclish.Command) error
- func ActionUserEnable(cmd *dclish.Command) error
- func ActionUserList(_ *dclish.Command) error
- func ActionUserMod(cmd *dclish.Command) error
- func ActionUserName(cmd *dclish.Command) error
- func ActionUserNoadmin(cmd *dclish.Command) error
- func ActionUserNomod(cmd *dclish.Command) error
- func Loop() error
- func ParseDate(arg string) (time.Time, error)
- func ParseNumberList(input string) ([]int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ActionAdd ¶
ActionAdd handles the `ADD` command. This adds a message to a folder.
This originally existed as the subroutine ADD in bulletin.for.
func ActionBack ¶
ActionBack handles the `BACK` command. Goes back and shows the previous message.
This originally existed as... not sure.
func ActionChange ¶
ActionChange handles the `CHANGE` command. This replaces or modifies an existing message.
This originally existed as... not sure.
func ActionCreate ¶
ActionCreate handles the `CREATE` command. This creates a folder.
This originally existed as the subroutine CREATE_FOLDER in bulletin4.for.
func ActionCurrent ¶
ActionCurrent handles the `CURRENT` command. This shows the head of the current message.
This originally existed as... not sure.
func ActionDelete ¶
ActionDelete handles the `DELETE` command. This deletes a message. As of now this is permanent. It would need to be changed to support UNDELETE.
This originally existed as the subroutine DELETE_MSG in bulletin0.for.
func ActionDirectory ¶
ActionDirectory handles the `DIRECTORY` command. This lists all the messages in the current folder.
This originally existed as the subroutines DIRECTORY in bulletin0.for and DIRECTORY_FOLDERS in bulletin5.for.
func ActionExit ¶
ActionExit handles the `EXIT` command. This exits BULLETIN.
func ActionFirst ¶
ActionFirst handles the `FIRST` command. Prints the first message in a folder.
This originally existed as... not sure.
func ActionForward ¶
ActionForward handles the `FORWARD` command.
This originally existed as the subroutine MAIL in bulletin1.for.
func ActionHelp ¶
ActionHelp handles the `HELP` command. This provides help taxt for each command.
This originally existed as the subroutine HELP in bulletin8.for.
func ActionIndex ¶
ActionIndex handles the `INDEX` command. This lists all the folders.
This originally existed as the subroutine FULL_DIR in bulletin9.for.
func ActionLast ¶
ActionLast handles the `LAST` command. Prints the last message.
This originally existed as... not sure.
func ActionMail ¶
ActionMail handles the `MAIL` command.
This originally existed as the subroutine MAIL in bulletin1.for.
func ActionMark ¶
ActionMark handles the `MARK` command. This sets a MARK on messages.
This originally existed as... not sure.
func ActionModify ¶
ActionModify handles the `MODIFY` command. This modifies a folder.
This is based on `MODIFY_FOLDER` in bulletin1.for.
func ActionNext ¶
ActionNext handles the `NEXT` command. Shows the next message.
This originally existed as... not sure.
func ActionPrint ¶
ActionPrint handles the `PRINT` command. This sends the message in a way that the terminal will redirect it to an attached printer. Not many (any?) terminals support it now.
This originally existed as the subroutine PRINT in bulletin1.for.
func ActionQuit ¶
ActionQuit handles the `QUIT` command. This exits BULLETIN.
func ActionRead ¶
ActionRead handles the `READ` command. Increment (except the first time it's a called in a folder) and reads the message.
This originally existed as the subroutine READ_MSG in bulletin1.for.
func ActionRemove ¶
ActionRemove handles the `REMOVE` command. This modifies a folder.
This originally existed as the subroutine REMOVE_FOLDER in bulletin5.for.
func ActionReply ¶
ActionReply handles the `REPLY` command. Used to create a reply to a message.
This originally existed as the subroutine REPLY in bulletin.for.
func ActionRespond ¶
ActionRespond handles the `RESPOND` command.
This originally existed as the subroutine RESPOND_MAIL in bulletin2.for.
func ActionSSH ¶
ActionSSH handles the `SSH` command. This prints the help for all the SSH commands. These are used to manage the authorized_keys file. These are new to the Go version of BULLETIN.
func ActionSSHAdd ¶
ActionSSHAdd handles the `SSH ADD` command. This adds a given ssh key to the authorized_keys file for the given user. An admin can add a new public key for another user.
This is new to the Go version of BULLETIN.
func ActionSSHDelete ¶
ActionSSHDelete handles the `SSH DELETE` command. Removes ssh public keys for a user. And admin can specify a different user to remove public keys for.
This is new to the Go version of BULLETIN.
func ActionSSHFetch ¶
ActionSSHFetch handles the `SSH FETCH` command. This command pulls public keys from code sites. It's the quickest way to add a number of keys for a user. An admin can do this for another user.
This is new to the Go version of BULLETIN.
func ActionSSHList ¶
ActionSSHList handles the `SSH LIST` command. This lists all the public keys for this user. An admin can list public keys for another user.
This is new to the Go version of BULLETIN.
func ActionSearch ¶
ActionSearch handles the `SEARCH` command. This will show all messages matching a search term.
See subtoutines SEARCH and GET_SEARCH in bulletin2.for for the original implementation.
func ActionSeen ¶
ActionSeen handles the `SEEN` command. Marks messages as seen.
This originally existed as... not sure.
func ActionSelect ¶
ActionSelect handles the `SELECT` command. This selects a folder.
This is based on `SELECT_FOLDER` in bulletin5.for.
func ActionSet ¶
ActionSet handles the `SET` command. This command has multiple subcommands. This just prints the help you'd see with "HELP SET".
func ActionSetAccess ¶
ActionSetAccess handles the `SET ACCESS` command.
This originally existed as the subroutine SET_ACCESS in bulletin5.for.
func ActionSetAlways ¶
ActionSetAlways handles the `SET ALWAYS` command.
func ActionSetBrief ¶
ActionSetBrief handles the `SET BRIEF` command.
func ActionSetDefaultExpire ¶
ActionSetDefaultExpire handles the `SET DEFAULT_EXPIRE` command.
func ActionSetExpireLimit ¶
ActionSetExpireLimit handles the `SET EXPIRE_LIMIT` command.
func ActionSetNoPromptExpire ¶
ActionSetNoPromptExpire handles the `SET NOPROMPT_EXPIRE` command.
func ActionSetNoReadNew ¶
ActionSetNoReadNew handles the `SET READNEW` command.
func ActionSetNoShowNew ¶
ActionSetNoShowNew handles the `SET SHOWNEW` command.
func ActionSetNoaccess ¶
ActionSetNoaccess handles the `SET ACCESS` command.
This originally existed as the subroutine SET_ACCESS in bulletin5.for.
func ActionSetNoalways ¶
ActionSetNoalways handles the `SET NOALWAYS` command.
func ActionSetNobrief ¶
ActionSetNobrief handles the `SET NOBRIEF` command.
func ActionSetNosystem ¶
ActionSetNosystem handles the `SET SYSTEM` command.
func ActionSetPromptExpire ¶
ActionSetPromptExpire handles the `SET PROMPT_EXPIRE` command.
func ActionSetReadNew ¶
ActionSetReadNew handles the `SET READNEW` command.
func ActionSetShowNew ¶
ActionSetShowNew handles the `SET SHOWNEW` command.
func ActionSetSystem ¶
ActionSetSystem handles the `SET SYSTEM` command.
func ActionShowFlags ¶
ActionShowFlags handles the `SHOW FLAGS` command.
func ActionShowFolder ¶
ActionShowFolder handles the `SHOW FOLDER` command. This is based on `SHOW_FOLDER` in bulletin5.for.
func ActionShowNew ¶
ActionShowNew handles the `SHOW NEW` command.
func ActionShowPrivileges ¶
ActionShowPrivileges handles the `SHOW PRIVILEGES` command.
func ActionShowUser ¶
ActionShowUser handles the `SHOW USER` command.
func ActionShowVersion ¶
ActionShowVersion handles the `SHOW VERSION` command.
func ActionUnmark ¶
ActionUnmark handles the `UNMARK` command. This removes a MARK on messages.
This originally existed as... not sure.
func ActionUnseen ¶
ActionUnseen handles the `UNSEEN` command. Marks messages as unseen.
This originally existed as... not sure.
func ActionUser ¶
ActionUser handles the USER command - it prints out help for all the USER subcommands. This is new to the Go version of BULLETIN.
func ActionUserAdd ¶
ActionUserAdd handles the `USER ADD` command. This is used to add a new user. This is new to the Go version of BULLETIN.
func ActionUserAdmin ¶
ActionUserAdmin handles the `USER ADMIN` command. This makes the given user an admin. Only the admin can use this command.
This is new to the Go version of BULLETIN.
func ActionUserDelete ¶
ActionUserDelete handles the `USER DELETE` command. This will delete the named user. Only the admin can use this command.
This is new to the Go version of BULLETIN.
func ActionUserDisable ¶
ActionUserDisable handles the `USER DISABLE` command. This disables a user. Only the admin can use this command.
This is new to the Go version of BULLETIN.
func ActionUserEnable ¶
ActionUserEnable handles the `USER ENABLE` command. This enables a user. Only the admin can use this command.
This is new to the Go version of BULLETIN.
func ActionUserList ¶
ActionUserList handles the `USER LIST` command. This lists all the users. For now this is limited to only the admin users.
This is new to the Go version of BULLETIN.
func ActionUserMod ¶
ActionUserMod handles the `USER MOD` command. Makes given the user a moderator. Only the admin can use this command.
This is new to the Go version of BULLETIN.
func ActionUserName ¶
ActionUserName handles the `USER NAME` command. Updates the user's name. Only the admin can use the two argument version of this command.
This is new to the Go version of BULLETIN.
func ActionUserNoadmin ¶
ActionUserNoadmin handles the `USER NOADMIN` command. This removes the admin bit from a given user. Only the admin can use this command.
This is new to the Go version of BULLETIN.
func ActionUserNomod ¶
ActionUserNomod handles the `USER NOMOD` command. Removes the moderator bit from the given user. Only the admin can use this command.
This is new to the Go version of BULLETIN.
func ParseDate ¶
ParseDate converts a "yyyy-mm-dd" formatted string to time.Time.
Types ¶
This section is empty.
Source Files
¶
- accounts.go
- args.go
- command.go
- folders.go
- help.go
- mail.go
- messages.go
- misc.go
- msg-text.go
- repl.go
- set.go
- show.go
- storage.go
- xfer.go