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

add section for command line operations #58

Open
atravitz opened this issue Oct 28, 2019 · 5 comments
Open

add section for command line operations #58

atravitz opened this issue Oct 28, 2019 · 5 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@atravitz
Copy link
Collaborator

signac command line operations need to be highlighted, especially signac shell

@vyasr vyasr added the enhancement New feature or request label Nov 16, 2019
@klywang klywang added the good first issue Good for newcomers label Nov 20, 2019
@klywang klywang self-assigned this Mar 16, 2020
@atravitz atravitz self-assigned this Apr 17, 2020
@atravitz
Copy link
Collaborator Author

@glotzerlab/signac-committers - thoughts on if CLI documentation should be under "Getting Started" or "User Guide"? I think it should be its own section

@klywang
Copy link
Contributor

klywang commented Apr 17, 2020

Once the CLI section is created, we should make sure to link it to the Tutorial section (and anywhere else it may be relevant).

@vyasr
Copy link
Contributor

vyasr commented Apr 21, 2020

@atravitz I think as per our discussion yesterday I agree with the sectioning suggested in #85 (a separate command line section that falls under the User Guides, whether or not we keep that User Guides header). However, I also think it would be worth updating the tutorial to have more (and more clearly delineated) examples of command line usage. Right now I see only three mentions of the command line interface in the signac (not flow) part of the tutorial, and only two actually show code (for signac find and signac schema).

My suggestion would be to change all the existing lines in the tutorial into pure Python interface (except the creation of the project folder), but then add little info bubbles next to some subset of the Python snippets in the tutorial showing how you'd achieve the equivalent on the command line. For example, next to where we currently have signac.init_project(PROJECT_NAME), we could have a little bubble showing $ signac init PROJECT_NAME. For schema detection, you would change the existing snippet to project.detect_schema(), but then show that that's equivalent to $ signac schema, and so on. Thoughts?

@klywang
Copy link
Contributor

klywang commented Apr 21, 2020

@vyasr I think this is a good idea. We just need to be careful that the info bubbles don't overwhelm the rest of the tutorial.

@cbkerr
Copy link
Member

cbkerr commented Aug 7, 2020

For reference, here is how this was done in the signac project.

I found a package (on conda) that enables embedding the output of any command line command. I tried it on the signac help commands and it works as expected.

After adding it to extensions, we invoke it with:

.. program-output:: signac project -h

We can use this method to insert relevant command line commands into the documentation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

4 participants