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

generate option not explained #475

Closed
wolf99 opened this issue Dec 11, 2021 · 5 comments · Fixed by #469
Closed

generate option not explained #475

wolf99 opened this issue Dec 11, 2021 · 5 comments · Fixed by #469
Labels
kind: feature User-facing enhancement

Comments

@wolf99
Copy link

wolf99 commented Dec 11, 2021

The generate command isn't explained in the help information.

It doesn't appear to take an argument to indicate the exercise to update.

$ configlet generate complex-numbers
Error: invalid argument for command 'generate': 'complex-numbers'

Usage:
  configlet [global-options] <command> [command-options]

Commands:
  lint, sync, uuid, generate, info

Options for sync:
  -e, --exercise <slug>        Only sync this exercise
  -m, --mode <mode>            What to do with missing test cases. Allowed values: c[hoose], i[nclude], e[xclude]
  -p, --prob-specs-dir <dir>   Use this `problem-specifications` directory, rather than cloning temporarily
  -o, --offline                Do not check that the directory specified by `-p, --prob-specs-dir` is up-to-date
  -u, --update                 Prompt the user to include, exclude, or skip any missing tests

Options for uuid:
  -n, --num <int>              Number of UUIDs to generate

Global options:
  -h, --help                   Show this help message and exit
      --version                Show this tool's version information and exit
  -t, --track-dir <dir>        Specify a track directory to use instead of the current directory
  -v, --verbosity <verbosity>  The verbosity of output. Allowed values: q[uiet], n[ormal], d[etailed]

Without an option or argument it doesn't appear to do anything.
Maybe the exercise is already up to date or maybe the command is not implemented 🤷

$ ./bin/configlet generate

# (no output)

This is with the latest version that fetch-configlet fetches

$configlet --version
4.0.0-alpha.34

Perhaps #366 is intended to resolve this, but I am not sure.

@ee7
Copy link
Member

ee7 commented Dec 11, 2021

Sorry for the confusion. The configlet --help message could indeed be much more helpful. I've been working on improving it, though; it'll soon look something like this.

In the future we'll probably have longer command descriptions in the help message, and likely support e.g. configlet generate --help for command-specific help. But for now, please see the repo README here.

The generate command in the current configlet doesn't do the same thing as the old generate command in the configlet for Exercism v2. The new generate doesn't have anything to do with problem-specifications. sync is the command that deals with updating from problem-specifications.

The usage message is correct that generate doesn't currently take an argument or options. But we'll probably try to make its interface consistent with sync and fmt.

@wolf99
Copy link
Author

wolf99 commented Dec 11, 2021

Does the sync command currently cover the practice exercise instructions?
Or is there no way to sync those yet?

@ee7
Copy link
Member

ee7 commented Dec 11, 2021

Does the sync command currently cover the practice exercise instructions? Or is there no way to sync those yet?

That's coming in the next release - very soon. The last blocker was resolved yesterday.

In configlet 4.0.0-alpha.34, sync operates only on tests. In 4.0.0-alpha.35, it will work like this.

If you want to update only the docs for the complex-numbers exercise, it'll be:

$ configlet sync --docs --update --exercise complex-numbers

or in non-interactive, keystroke-saving form:

$ configlet sync --docs -uy -e complex-numbers

I'll let you know when it's released. Sorry for the delay.

@wolf99
Copy link
Author

wolf99 commented Dec 11, 2021

Yay! That's cool 😎

Well done @ee7 👍

@ee7
Copy link
Member

ee7 commented Dec 18, 2021

@wolf99 it's now released - see https://github.com/exercism/configlet/releases/tag/4.0.0-alpha.35

The updates to the configlet docs can now be seen in the repo's README.md.

@ee7 ee7 added the kind: feature User-facing enhancement label May 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: feature User-facing enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants