Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New argument layout #1

Closed
sverhoeven opened this issue Feb 6, 2017 · 3 comments
Closed

New argument layout #1

sverhoeven opened this issue Feb 6, 2017 · 3 comments

Comments

@sverhoeven
Copy link
Member

sverhoeven commented Feb 6, 2017

xenon
  --dry-run
  --format cwljson
  [--certfile ...]
  [--password ...]
  [--username ...]
            slurm
                [--location hostname]
                [--props KEY=VALUE]
                    exec <executable> <args> <environment> <job options> <max time> <queue> <working directory> <std* attached to local streams>
                    submit <executable> <args> <environment> <job options> <max time> <queue> <working directory> <std* just filename>
                    list [--queue gpu] [--id 1234]
                    remove 1234
                    queues [--default]
            ssh
                --location hostname
                [--props KEY=VALUE]
                    exec <executable> <args> <environment> <job options> <max time> <queue> <working directory> <std*?? attached to local streams>
            sftp 
                --location hostname
                [--props KEY=VALUE]
                    copy [--recursive] [--ignore-existing] [--overwrite] <src-path> <dst-location> <dst-path> [--dst-certfile ...] [--dst-sername ...] [--dst-password ...]
                    upload [--recursive] [--ignore-existing] [--overwrite] <src-path> <dst-path>
                    download [--recursive] [--ignore-existing] [--overwrite] <src-path> <dst-path>
                    remove <path>
                    list [--recursive] <path>
            local
                [--location drive??]
                [--props KEY=VALUE]
                    exec <executable> <args> <environment> <job options> <max time> <queue> <working directory> <std*?? attached to local streams>
            file 
                [--location drive??]
                    copy [--recursive] [--ignore-existing] [--overwrite] <src-path> <dst-path>
                    remove <path>
                    list [--recursive] <path>
            webdav 
                --location hostname
                [--props KEY=VALUE]
                    copy [--recursive] [--ignore-existing] [--overwrite] <src-path> <dst-location> <dst-path> [--dst-certfile ...] [--dst-sername ...] [--dst-password ...]
                    upload [--recursive] [--ignore-existing] [--overwrite] <src-path> <dst-path>
                    download [--recursive] [--ignore-existing] [--overwrite] <src-path> <dst-path>
                    remove <path>
                    list [--recursive] <path>

The copy subcommand is for copying between 2 remote systems.
The exec subcommand waits for job to complete, the submit subcommand does not.

Local paths can be absolute or relative to working directory.

@sverhoeven
Copy link
Member Author

std* for exec attach to local stream.

For submit use filenames that are read/written to/from the --location in the working directory or if working directory is not set most likely ~/.

sverhoeven added a commit that referenced this issue Feb 6, 2017
@sverhoeven
Copy link
Member Author

Rename download/upload commands to get/put resp.?

The local target file in download command should be pipeable to stdout using - as argument.
The local source file in upload command shoulbe be pipeable from stdin using - as argument.

sverhoeven added a commit that referenced this issue Feb 7, 2017
@sverhoeven
Copy link
Member Author

Most code completed, created issues (#2 and #3) for uncompleted items.

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

No branches or pull requests

1 participant