floydhub / floyd-cli

Command line tool for FloydHub - the fastest way to build, train, and deploy deep learning models
https://floydhub.com
Apache License 2.0
156 stars 34 forks source link

Regex to catch bad data mount #214

Closed ReDeiPirati closed 5 years ago

ReDeiPirati commented 5 years ago
(cli-venv) pirate:cli-test pirate$ floyd run --data https://www.floydhub.com/pirate/datasets/my-data:
Argument 'https://www.floydhub.com/pirate/datasets/my-data:' doesn't match any recognized pattern:
        floyd run --data <dataset_name>
    floyd run --data <dataset_name>:<mounting_point>
    floyd run --data <namespace>/[projects|dataset]/<dataset_or_project_name>
    floyd run --data <namespace>/[projects|dataset]/<dataset_or_project_name>
    floyd run --data <namespace>/[projects|dataset]/<dataset_or_project_name>/<version>
    floyd run --data <namespace>/[projects|dataset]/<dataset_or_project_name>/<version>:<mounting_point>
    floyd run --data <data_id> (DEPRECATED)
    floyd run --data <data_id>:<mounting_point> (DEPRECATED)

 Note: Argument can contain only alphanumeric and - chars
ReDeiPirati commented 5 years ago

It seems that the tests have to be updated. nvm, I forgot to catch one pattern.