Skip to content

Commit b2acb22

Browse files
author
Brian Wiborg
committed
πŸ’¬ Usage examples in --help
1 parent 7e16bfa commit b2acb22

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

β€Žcmd/ziina/main.goβ€Ž

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,21 @@ const banner = `
3434
β•šβ•β•β•β•β•β•β•β•šβ•β•β•šβ•β•β•šβ•β• β•šβ•β•β•β•β•šβ•β• β•šβ•β•
3535
`
3636

37+
const examples = `
38+
Invite peers in you LAN.
39+
40+
ziina -l 192.168.1.2:2222
41+
42+
Invite peers using **ssh.example.com** as entrypoint for your peers:
43+
44+
ziina -s ssh.example.com
45+
46+
Show connection info:
47+
48+
echo $ZIINA_CONNECTION_INFO
49+
echo $ZIINA_CONNECTION_INFO_RO
50+
`
51+
3752
var (
3853
// sessionName contains the name of the Zellij session.
3954
// An empty string denotes that the host has not yet initiaed a session.
@@ -61,8 +76,9 @@ func randomString(length int) (string, error) {
6176

6277
// App serves as entry-point for github.com/urfave/cli
6378
var App = &cli.App{
64-
Name: "ziina",
65-
Usage: "πŸ’» πŸ“€ πŸ‘₯ Instant terminal sharing; using Zellij." + "\n" + gorainbow.Rainbow(banner),
79+
Name: "ziina",
80+
Usage: "πŸ’» πŸ“€ πŸ‘₯ Instant terminal sharing; using Zellij." + "\n" + gorainbow.Rainbow(banner),
81+
Description: examples,
6682
Flags: []cli.Flag{
6783
&cli.StringFlag{
6884
Name: "listen",

0 commit comments

Comments
Β (0)