Skip to content
This repository was archived by the owner on Aug 15, 2021. It is now read-only.

No way to issue subcommands #2

@mathrick

Description

@mathrick

There's no real way to issue subcommands (a'la svn/git), other than by passing them all as parameters into the call. That means there's a strong asymmetry in the syntax:

so.git.help()

vs

so.git("commit", "--help")

I don't see a good way to fix that with the current structure of the API, but I think remodelling it would allow mapping things in a way that's more consitent:

so.ls()
so.ls["-l"]()
so.ls["--color":"always"]()
so.git.commit["--help"]()
# or perhaps better as
so.git["commit"]["--help"]
so.git["ls-files"]["--help"]

By abusing slices, ShellOut could get have a syntax for specifying the values of non-boolean options.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions