Skip to content

DOC: update strings for command categories #7027

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

Merged
merged 2 commits into from
Sep 13, 2022

Conversation

aqw
Copy link
Contributor

@aqw aqw commented Sep 12, 2022

The new DataLad Gooey-GUI-Gew~wee uses the category strings for commands for the UI, which increases the visibility of this problem.

This PR intends to achieve the following:

  • make the text consistent (the word "commands" alternate between the front or back of the text description)
  • reduce redundancy (they are all commands, no need to use the word "command" to redefine them)

I looked at git --help, and I /really/ like the way that they organize their subcommands. However, such a change for DataLad would involve a pretty significant reorganization of the subcommand categories, which I anticipate would be controversial. I aim for this change to enter first, and if there's desire for a further refinement of organization, then that could follow.

Lastly, this PR removes an epilogue from the DataLad help. Accusations of me of being a curmudgeon would not be entirely out of line --- but I do find the current rendering to be confusing. If indeed we want people to be happy, we should not confuse them in the process.

If there's strong support for the retention of the terse-and-imperative-message-of-optimism, then I can amend this PR to adjust the surrounding whitespace.

Changelog

📝 Documentation

  • Command categories in help text are more consistently named.

aqw added 2 commits September 12, 2022 11:15
I do like being happy, and I enjoy other people being happy. I also
celebrate whimsy.

However, this epilogue is rendered in a way that makes it seem to be a
category of subcommands (confusing) and completely empty --- which is
wholly depressing.
@codeclimate
Copy link

codeclimate bot commented Sep 12, 2022

Code Climate has analyzed commit c5b1352 and detected 0 issues on this pull request.

View more on Code Climate.

@yarikoptic yarikoptic added the semver-internal Changes only affect the internal API label Sep 12, 2022
Copy link
Member

@yarikoptic yarikoptic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FWIW, good with me! Thanks!

@@ -64,7 +64,7 @@
])

_group_2metadata = (
'Commands for metadata handling',
'Metadata',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor but might want to avoid modifying this to avoid conflict with #7014

@yarikoptic yarikoptic added the CHANGELOG-missing When a PR's description does not contain a changelog item, yet. label Sep 13, 2022
Copy link
Member

@mih mih left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx!

@mih mih merged commit d8924b6 into datalad:master Sep 13, 2022
@yarikoptic
Copy link
Member

note: CI was red for appveyor and travis for a reason! See e.g. https://app.travis-ci.com/github/datalad/datalad/builds/255439732 . I will submit a PR to fix.

yarikoptic added a commit to yarikoptic/datalad that referenced this pull request Sep 15, 2022
Redness fatigue made us merge datalad#7027
without seeing that test failed.  Daily tests of datalad/git-annex started
to fail which let me to detect this

=== Do not change lines below ===
{
 "chain": [],
 "cmd": "sed -i -e 's,Miscellaneous commands,Miscellaneous,g' '{outputs}'",
 "exit": 0,
 "extra_inputs": [],
 "inputs": [],
 "outputs": [
  "datalad/cli/tests/test_main.py"
 ],
 "pwd": "."
}
^^^ Do not change lines above ^^^
@yarikoptic-gitmate
Copy link
Collaborator

PR released in 0.18.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CHANGELOG-missing When a PR's description does not contain a changelog item, yet. semver-internal Changes only affect the internal API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants