-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Renamed ping to info in store #8975
Changes from 5 commits
5cb0bf8
ecde425
17619b2
6973044
91b314e
8f4557b
1a4f4f9
7fcc122
0333d18
0652e26
fc094c1
0556de9
7fd7db7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -126,7 +126,7 @@ struct NixArgs : virtual MultiCommand, virtual MixCommonArgs | |
{"ls-store", {"store", "ls"}}, | ||
{"make-content-addressable", {"store", "make-content-addressed"}}, | ||
{"optimise-store", {"store", "optimise"}}, | ||
{"ping-store", {"store", "ping"}}, | ||
{"info-store", {"store", "info"}}, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That one shouldn't be changed. The There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks. So, According to the comment, the ping-store need to stay the same but, the vector alias of it There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I do not off-hand know of a mechanism for aliasing within subcommands, but if we look how this is implemented with overriding There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have changed the store command in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am not sure what you are saying? I am saying you can modify There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please let me know if there are any documentations available for this aliasing. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is no documentation for this exact task. You would need to figure out what It would be good to add API docs to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sure. I will try to implement it in store.cc. Thanks. |
||
{"sign-paths", {"store", "sign"}}, | ||
{"show-derivation", {"derivation", "show"}}, | ||
{"to-base16", {"hash", "to-base16"}}, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a big deal (and no blocker to me), but since we're renaming things, we could rename this to
store-info.md
to match the command (ping-store
comes from the original command name and was already out of sync)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
store-info files are renamed according to the command name
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think what @thufschmitt is saying is that it would be good to call both files
store-info.{cc,md}
. The file was never properly renamed when the commands were made hierarchical before, but we should fix that.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure. I will try to implement the aliasing in store.cc. Thanks