diff options
| author | raven <citrons@mondecitronne.com> | 2026-02-11 11:43:51 -0600 |
|---|---|---|
| committer | raven <citrons@mondecitronne.com> | 2026-02-11 12:03:29 -0600 |
| commit | 71ac612891076ecf270e78116f2e13c3a6a40068 (patch) | |
| tree | 92274b17e313d11a6bcf583babe55ac7a5e3adbf /client/command.go | |
| parent | 9840888f9b7eeefeaf3694aa762b3afcfc1af61d (diff) | |
configuration files
Diffstat (limited to 'client/command.go')
| -rw-r--r-- | client/command.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/client/command.go b/client/command.go index ea3acb6..a96839c 100644 --- a/client/command.go +++ b/client/command.go @@ -94,6 +94,18 @@ func (a *application) doCommand(command string, args []string, text string) { a.cmdWindow.Buffer().Add(hm) } return + case "echo": + a.cmdWindow.info("[echo] %s", text) + return + case "include": + err := a.executeConfig(text) + if err != nil { + err = a.executeConfig(text + ".conf") + } + if err != nil { + a.cmdWindow.err(err.Error()) + } + return } if !a.connected { |
