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

Command line syntax to set root directory #80

Open
paulhoule opened this issue Nov 15, 2013 · 0 comments
Open

Command line syntax to set root directory #80

paulhoule opened this issue Nov 15, 2013 · 0 comments
Milestone

Comments

@paulhoule
Copy link
Owner

a problem I'm having now is that when I want to run a q against all of :BaseKB, I have to write a long command line like

haruhi run job -clusterId mediumAwsCluster uniqURISubjects -r 11 s3n://basekb-now/2013-11-10-00-00/sieved/a s3n://basekb-now/2013-11-10-00-00/sieved/description s3n://basekb-now/2013-11-10-00-00/sieved/key s3n://basekb-now/2013-11-10-00-00/sieved/keyNs s3n://basekb-now/2013-11-10-00-00/sieved/label s3n://basekb-now/2013-11-10-00-00/sieved/links s3n://basekb-now/2013-11-10-00-00/sieved/name s3n://basekb-now/2013-11-10-00-00/sieved/notability s3n://basekb-now/2013-11-10-00-00/sieved/notableForPredicate s3n://basekb-now/2013-11-10-00-00/sieved/other s3n://basekb-now/2013-11-10-00-00/sieved/text s3n://basekb-now/2013-11-10-00-00/sieved/webpages s3n://basekb-sandbox/2013-11-10-00-00/uniqURISubjects

The length is bad enough by itself, but between my shell and my terminal program I sometimes have problems editing long command lines, in particular what I see on the screen gets out of sync with what is in the memory buffer so I can end up submitting a command different than what I see on the screen and then the cluster run fails.

I'd rather write something like

haruhi run job -clusterId mediumAwsCluster uniqURISubjects -r 11 -dir s3n://basekb-now/2013-11-10-00-00/sieved/ a description key keyNs links name notability notableForPredicate text webpages -dir s3n://basekb-sandbox/2013-11-10-00-00/ uniqURISubjects

Note that -dir sets a "working directory" for all the paths to the right until another -dir is specified.

This should be built into all commands that take multiple inputs.

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