Skip to content

cli: add positional args for users search and messages send#79

Closed
salmonumbrella wants to merge 1 commit intoinline-chat:mainfrom
salmonumbrella:cli/ux-positional-args
Closed

cli: add positional args for users search and messages send#79
salmonumbrella wants to merge 1 commit intoinline-chat:mainfrom
salmonumbrella:cli/ux-positional-args

Conversation

@salmonumbrella
Copy link
Contributor

Summary

  • Add search and find as aliases for users list, so inline users search isaac works
  • Make users list filter a positional arg instead of --filter, so inline users list isaac works
  • Add trailing positional text support to messages send, so inline messages send --chat-id 304 hello world works alongside the existing --text flag

All changes are backward-compatible — the --text flag continues to work as before.

Before / After

# Before (errors)
inline users search isaac        # "unrecognized subcommand 'search'"
inline messages send 304 "hi"    # "unexpected argument '304'"

# After (works)
inline users search isaac        # finds Isaac
inline users list isaac           # also works (positional filter)
inline messages send --chat-id 304 hello world   # sends "hello world"
inline messages send --chat-id 304 --text "hi"   # still works (flag syntax)

@morajabi
Copy link
Contributor

morajabi commented Feb 7, 2026

Not merging this PR directly; we incorporated the desired CLI ergonomics ideas (users search/find desire paths) in follow-up commits, without adding positional send.

@morajabi morajabi closed this Feb 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants