mirror of
https://github.com/daylinmorgan/tsm.git
synced 2024-12-21 20:50:45 -06:00
refactor: noop
This commit is contained in:
parent
1d12d810f0
commit
544b4f5c6f
1 changed files with 8 additions and 8 deletions
16
src/tsm.nim
16
src/tsm.nim
|
@ -17,19 +17,19 @@ when isMainModule:
|
||||||
import std/parseopt
|
import std/parseopt
|
||||||
import hwylterm, hwylterm/cli
|
import hwylterm, hwylterm/cli
|
||||||
|
|
||||||
const tsmVersion {.strdefine.} = staticExec "git describe --tags --always HEAD --match 'v*'"
|
const
|
||||||
proc help() =
|
tsmVersion {.strdefine.} =
|
||||||
echo newHwylCli(
|
staticExec "git describe --tags --always HEAD --match 'v*'"
|
||||||
|
usage =
|
||||||
"""tmux session manager
|
"""tmux session manager
|
||||||
|
|
||||||
[bold]tsm[/] [[[faint]-h|-v|-o[/]]""",
|
[bold]tsm[/] [[[faint]-h|-v|-o[/]]"""
|
||||||
|
flags = [
|
||||||
flags = [
|
|
||||||
("h","help","show this help"),
|
("h","help","show this help"),
|
||||||
("v","version", "print version"),
|
("v","version", "print version"),
|
||||||
("o","open", "only search open sessions")
|
("o","open", "only search open sessions")
|
||||||
]
|
]
|
||||||
)
|
proc help() = echo newHwylCli(usage, flags = flags)
|
||||||
var open: bool
|
var open: bool
|
||||||
var p = initOptParser(
|
var p = initOptParser(
|
||||||
shortNoVal = {'h', 'v', 'o'},
|
shortNoVal = {'h', 'v', 'o'},
|
||||||
|
|
Loading…
Reference in a new issue