cli_daemon/

directory
v0.18.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2026 License: MIT

README

CLI Daemon

This asyncmachine example uses aRPC to mutate a singleton state-machine (the daemon). The daemon can be separately controlled via an aRPC REPL.

// TODO gif

Components

  • aRPC daemon in /daemon
  • CLI using go-arg in /cli
  • state machine schema in /states
  • optional
    • typed arguments in ./types
    • REPL with typed args

Tasks

  • task start
  • task cli
  • task repl

Demo

  • tty0: task start
  • tty1: task cli -- --foo-1
  • tty2: task repl
  • tty1: task cli -- --bar-2

Directories

Path Synopsis
Package states contains a stateful schema-v2 for a CLI.
Package states contains a stateful schema-v2 for a CLI.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL