Skip to content

Add a parser for dot (/branch etc) names #3

@alaric-dotmesh

Description

@alaric-dotmesh

User interfaces often let users input strings to identify:

  • Dots
  • Branches
  • Subdots
  • Subdot-on-branch

We use a standard syntax for this, the reference implementation of which is partly in the dm CLI (ParseNamespacedVolume in cmd/dm/pkg/remotes/api.go), partly in the procure mechanism (cloneName parsing in reallyProcureFilesystem in cmd/dotmesh-server/controller.go) and parseNamespacedVolumeWithSubvolumes ub cmd/dotmesh-server/utils.go.

Put a parser for it in the Python library, with different functions based on whether we expect just a dot name, or whether branches and/or subdots are also allowed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    taskNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions