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

Pkg command registry-status doesn't work #988

Closed
davidanthoff opened this issue Jan 11, 2019 · 4 comments
Closed

Pkg command registry-status doesn't work #988

davidanthoff opened this issue Jan 11, 2019 · 4 comments

Comments

@davidanthoff
Copy link

This is on julia 1.1.0-rc1.0 on Windows.

The package manager tells me that there is a command registry-status when I look at the help with ]help. When I try to execute that command, I get an error though:

(v1.1) pkg> registry-status
ERROR: could not determine command
@davidanthoff
Copy link
Author

Actually, this is just a doc string error, this works:

(v1.1) pkg> registry status
Registry Status
 [23338594] General (https://github.com/JuliaRegistries/General.git)

But the help I get from ]help tells me to use registry-status:

(v1.1) pkg> help
  Welcome to the Pkg REPL-mode. To return to the julia> prompt, either press backspace when the input line is empty or press Ctrl+C.

  Synopsis

  pkg> cmd [opts] [args]

  Multiple commands can be given on the same line by interleaving a ; between the commands.

  Commands

  activate: set the primary environment the package manager manipulates

  add: add packages to project

  build: run the build script for packages

  develop: clone the full package repo locally for development

  free: undoes a pin, develop, or stops tracking a repo

  gc: garbage collect packages not used for a significant time

  generate: generate files for a new project

  help: show this message

  instantiate: downloads all the dependencies for the project

  pin: pins the version of packages

  precompile: precompile all the project dependencies

  preview: previews a subsequent command without affecting the current state

  registry-add: add package registries

  registry-remove: remove package registries

  registry-status: information about installed registries

  registry-update: update package registries

  remove: remove packages from project or manifest

  resolve: resolves to update the manifest from changes in dependencies of developed packages

  status: summarize contents of and changes to environment

  test: run tests for packages

  update: update packages in manifest

@fredrikekre fredrikekre transferred this issue from JuliaLang/julia Jan 11, 2019
@fredrikekre
Copy link
Member

It's not a mistake but a bit unintuitive. We should (i) not join with the dash and (ii) make pkg>?registry status work, as I discussed with @00vareladavid at some point.

@00vareladavid
Copy link
Contributor

Agreed. I can see how that is confusing.

I did get started on the changes when you mentioned it, it shouldn't be too hard to finish it up.

@fredrikekre
Copy link
Member

Also, ?registry and ?package should work and show a filtered help with the sub-commands.

bors bot added a commit that referenced this issue Jan 18, 2019
999: doc: "registry-add" to "registry add" in documentation,  r=fredrikekre a=fredrikekre

doc part of issue #988.

Co-authored-by: Fredrik Ekre <ekrefredrik@gmail.com>
bors bot added a commit that referenced this issue Feb 1, 2019
1018: Provide more intuitive help interface r=00vareladavid a=00vareladavid

This makes help syntax consistent with the command syntax for compound commands e.g. `pkg> registry add` and `pkg> help registry add`.

Also provides filtered and sorted help for "super" commands e.g. `pkg> help registry`

Resolves #988 



Co-authored-by: David Varela <00.varela.david@gmail.com>
@bors bors bot closed this as completed in #1018 Feb 1, 2019
fredrikekre added a commit that referenced this issue Feb 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants