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

Rust CLI book #45

Closed
killercup opened this issue Jul 24, 2018 · 10 comments
Closed

Rust CLI book #45

killercup opened this issue Jul 24, 2018 · 10 comments

Comments

@killercup
Copy link
Collaborator

killercup commented Jul 24, 2018

Since we are not just creating libraries but also collecting and curating knowledge around writing CLI crates, we need a good place to document this. I propose we create a web site that is hosted as part of this repo.

For this, we added a mdBook to this repository whose rendered version you can find here: https://rust-lang-nursery.github.io/cli-wg/

Content

Prior art:

Alternatives/additions

  • Add content to other resources! Cross-linking should be encouraged.

Content team

Who is responsible for (maintaining) the content?

@killercup killercup self-assigned this Jul 24, 2018
@killercup
Copy link
Collaborator Author

Let's use this issue to discuss the general idea and propose possible content. I'll open more issues to track actual action items for this.

@killercup killercup removed their assignment Jul 24, 2018
@epage
Copy link
Contributor

epage commented Jul 24, 2018

@deg4uss3r
Copy link

I think it would really nice to have a section that focuses on currently working on and currently needs help with. I definitely want to help (even if it is with documentation), but I find it really hard to track things and feel like we are really spread out.

@killercup
Copy link
Collaborator Author

@epage yes, if we go ahead with this I see both #27 and #39 as issues where the result should be "has docs/a section on the website".

@deg4uss3r are you talking about a section on the website that lists things you can help out with -- or "help needed" issues here that are about help we need with content for the website?

@steveklabnik
Copy link

steveklabnik commented Jul 24, 2018 via email

@deg4uss3r
Copy link

@deg4uss3r are you talking about a section on the website that lists things you can help out with -- or "help needed" issues here that are about help we need with content for the website?

Why not both? 😁 However, originally I was talking about a section on the website for things the working group is working on or unassigned/mentored work to do. We could pull these from issues, but having a central place would be great since I feel like the working group work is spread pretty far.

Aww @steveklabnik does that mean we need to come in on Saturday?

@killercup
Copy link
Collaborator Author

FYI I might be inclined to make a mdbook theme for the cli site if we choose to use mdbook. (Best case scenario, other WGs could use it too because it's so awesome, worst case scenario people hate it, average case nobody cares.)

@yoshuawuyts
Copy link
Collaborator

I kind of like the idea of starting with an mdbook. Feel it would fit nicely with the other WGs:

@killercup
Copy link
Collaborator Author

@tvannahl in https://github.com/rust-lang-nursery/cli-wg/issues/46#issuecomment-408386068 (pasting here for visibilty):

To be a book that includes best practises and pattern does sound very desirable. For later consultations a good overview about what changed (dropped pattern, etc.) would also be really nice.

Personally I do prefer a book since its easier and faster to comprehend the structure of it and straight forward to use as a lookup source.

Content to cover

To be more precise on the content I would assume on a cli-wg book to have:

Referenced content

If such a book is meant to be an introduction about developing a cli application, there are topics I would not cover but only reference. Further read if you will.

As such further read topic I would assume the following topics to fit right into this:

Possibly to consider

I don't know much about the cross-platform problem (#10) but since the related thread is rather active I assume it has relevance for cli as well.

@killercup killercup changed the title Find a place for documentation and WG recommendations Rust CLI book Jul 30, 2018
@killercup
Copy link
Collaborator Author

We now have a "Command Line Application in Rust" (CLAIR) book! https://rust-lang-nursery.github.io/cli-wg/

Its TOC is currently as follows:

  • A command line app in 15 minutes
    • Project setup
    • Parsing command line arguments
    • First implementation of our example tool
    • Nicer error reporting
    • Output for humans and machines
    • Testing
    • Packaging and documentation
  • In-depth topics
    • Signal handling
    • Using config files
    • Exit codes
    • Communicating with humans
    • Communicating with machines
    • Rendering documentation for you CLI apps
    • Packaging apps and distributing them for different platforms

This is only meant as an initial draft, and all of the "In-depth topics" chapters are empty.

If you see a chapter you want to work on, comment here, and please submit PRs to fill them with notes, ideas, links, and drafts!

If you feel like we are missing chapters or are unclear what the chapters should be about, comment here, and maybe also submit a PR to add clarifications or content!

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

5 participants