Skip to content

Require an explicit -- before Barn remote commands #11

Description

@Vonng

Current behavior

barn ssh and barn exec accept a command without --. A known first argument selects a node; otherwise the command runs on the default node with a warning. Near-miss node names are rejected.

Proposed behavior

Require -- before remote commands:

  • barn ssh [node] [-- command...]
  • barn exec [node] -- command...

An unknown node or a command without the separator should be a usage error. Keep help, completion, examples, and CLI tests consistent with the selected grammar.

This is a proposed CLI change; it is not implemented by the naming cleanup.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions