-
Notifications
You must be signed in to change notification settings - Fork 0
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
hpcutil option tree too deep #5
Comments
Is there an easy possibility to show the tree, i.e. all the possible tools? |
The idea of having a I don't think having a separate btw, why this is an issue? There is a tab-completion to help you navigate through available commands. I am ok to structure it further, but we better do it with a structure agreed by, for example, the scientific programming group. |
What is your usecase in mind? Wouldn't tab-completion and |
Very easy, make options findable / discoverable. For instance, the other day I wanted to look up the vnc session of a user (who came for help) and if you don't know the tree structure by heart, it is a pain to have to go through all the options to finally find |
There are many ways to make it findable/discoverable. The current way is to use tab-completion and It could also be a written documentation showing whole list of options. The issue of this approach is that it is very difficult to keep both implementation and documentation in sync. Generating a tree of commands requires handcraft work and it is also just like writing a documentation (but instead of a doc, it is written in the code). Again, I want to discuss the right way to improve it in a wider perspective rather that I start making new implementation which is later disagreed by someone-else. It is a waste of time and effort. |
I do use |
So what is your proposal? Do you want to restructure the command hierarchy or make a document to list all possible commands? I can easily do the second with a Linux man page (then you can do |
@marcelzwiers I have implemented the |
Nice, that will help just fine. Funny note: avail itself does not appear
when you use tab-completion after 'hpcutil'.
Op ma 4 nov. 2019 om 13:39 schreef Hurng-Chun Lee <[email protected]
…:
@marcelzwiers <https://github.com/marcelzwiers> I have implemented the hpcutil
avail command to list all available sub-commands. It is already available
on all cluster nodes. It may not be perfect considering the line wrapping
and tabular representation.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#5?email_source=notifications&email_token=ADTUGL4CBCL4VKNQEGYSKNLQSAJZXA5CNFSM4JHGXN62YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEC7DDRQ#issuecomment-549335494>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADTUGL4TYSIX5MFWLCSZXJ3QSAJZXANCNFSM4JHGXN6Q>
.
|
Hi,
On Mon, 2019-11-04 at 05:10 -0800, Marcel Zwiers wrote:
Nice, that will help just fine. Funny note: avail itself does not
appear
when you use tab-completion after 'hpcutil'.
It should.
You probably need to reload the bash-completion scripts, e.g.
source /etc/bash_completion.d/hpcutil
or reopen a new terminal or even re-login.
Hong
Op ma 4 nov. 2019 om 13:39 schreef Hurng-Chun Lee <
***@***.***
>:
> @marcelzwiers <https://github.com/marcelzwiers> I have implemented
the hpcutil
> avail command to list all available sub-commands. It is already
available
> on all cluster nodes. It may not be perfect considering the line
wrapping
> and tabular representation.
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <
#5?email_source=notifications&email_token=ADTUGL4CBCL4VKNQEGYSKNLQSAJZXA5CNFSM4JHGXN62YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEC7DDRQ#issuecomment-549335494
>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/ADTUGL4TYSIX5MFWLCSZXJ3QSAJZXANCNFSM4JHGXN6Q
>
> .
>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
--
Hurng-Chun Lee, Ph.D
ICT manager
Donders Institute for Brain, Cognition and Behaviour,
Centre for Cognitive Neuroimaging
Radboud University
e-mail: [email protected]
tel: +31(0) 243610977
web: http://www.ru.nl/donders/
|
Correct, sourcing helps :-)
Op ma 4 nov. 2019 om 14:14 schreef Hurng-Chun Lee <[email protected]
…:
Hi,
On Mon, 2019-11-04 at 05:10 -0800, Marcel Zwiers wrote:
> Nice, that will help just fine. Funny note: avail itself does not
> appear
> when you use tab-completion after 'hpcutil'.
It should.
You probably need to reload the bash-completion scripts, e.g.
source /etc/bash_completion.d/hpcutil
or reopen a new terminal or even re-login.
Hong
>
> Op ma 4 nov. 2019 om 13:39 schreef Hurng-Chun Lee <
> ***@***.***
> >:
>
> > @marcelzwiers <https://github.com/marcelzwiers> I have implemented
> the hpcutil
> > avail command to list all available sub-commands. It is already
> available
> > on all cluster nodes. It may not be perfect considering the line
> wrapping
> > and tabular representation.
> >
> > —
> > You are receiving this because you were mentioned.
> > Reply to this email directly, view it on GitHub
> > <
>
#5?email_source=notifications&email_token=ADTUGL4CBCL4VKNQEGYSKNLQSAJZXA5CNFSM4JHGXN62YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEC7DDRQ#issuecomment-549335494
> >,
> > or unsubscribe
> > <
>
https://github.com/notifications/unsubscribe-auth/ADTUGL4TYSIX5MFWLCSZXJ3QSAJZXANCNFSM4JHGXN6Q
> >
> > .
> >
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub, or unsubscribe.
--
Hurng-Chun Lee, Ph.D
ICT manager
Donders Institute for Brain, Cognition and Behaviour,
Centre for Cognitive Neuroimaging
Radboud University
e-mail: ***@***.***
tel: +31(0) 243610977
web: http://www.ru.nl/donders/
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#5?email_source=notifications&email_token=ADTUGLZEBKZH4SVBTNIPYWLQSAN3PA5CNFSM4JHGXN62YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEC7GDOI#issuecomment-549347769>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADTUGL4CAZMPZWJ5KV3MU7LQSAN3PANCNFSM4JHGXN6Q>
.
|
The
hpcutil
command accepts only three options, i.e.cluster
,version
andwebhook
. Obviouslyversion
is 'flat' andwebhook
is kind of flat too (the next level in the hierarchy are basically input argument towebhook
), but all the hierarchy ofcluster
seems to me to be too deep (for instance, there ishpcutil cluster nodes vnc
). Moreover, hpc already implies it is about the cluster, so it is kind of redundant and confusing. I think the tools undercluster
would be a lot more discoverable and easier to reach if thecluster
option would be cut out and all the sub-options be placed directly in the root, next toversion
andwebhook
The text was updated successfully, but these errors were encountered: