File: README.md

package info (click to toggle)
golang-github-alecthomas-kong 0.9.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 832 kB
  • sloc: sh: 32; makefile: 2
file content (42 lines) | stat: -rw-r--r-- 584 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# An interactive SSH server

In addition to command-lines, Kong can be used interactively. This example 
serves a Kong command-line over SSH.

Run with `go run .` then ssh to it like so:

```
$ ssh -p 6740 127.0.0.1
Welcome!
> ?

Example using Kong for interactive command parsing.

Commands:
  help [<command> ...]
    Show help.

  status
    Show server status.

> status
OK
> help status

Show server status.

Flags:
  -v, --verbose    Show verbose status information.

> status 
OK
> status -v
OK
> status foo
error: unexpected argument foo

Show server status.

Flags:
> ^D
```