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

refactor(daemon,cli): Consolidate pet name list commands #2102

Merged
merged 1 commit into from
Feb 28, 2024

Conversation

kriskowal
Copy link
Member

This change reverses a choice I made earlier, merged by #2068, where I elected to simplify the daemon’s list API to just have one list() method for each type of directory, name hub, or agent, guest, or host. I think if we want filters in the future, we can recover them in the CLI alone.

@kriskowal kriskowal requested a review from kumavis February 26, 2024 22:37
@kriskowal kriskowal force-pushed the kriskowal-consolidate-list branch 3 times, most recently from 2661df4 to 39c4d1a Compare February 27, 2024 00:13
if (directoryName !== undefined) {
party = E(party).lookup(directoryName);
if (directoryPath !== undefined) {
party = E(party).lookup(...directoryPath.split('.'));
Copy link
Member Author

Choose a reason for hiding this comment

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

I tacked on this fix for dot delimited lookup at the CLI.

@kriskowal kriskowal force-pushed the kriskowal-consolidate-list branch 3 times, most recently from 8c63fb1 to d0af822 Compare February 28, 2024 01:14
@kriskowal kriskowal force-pushed the kriskowal-consolidate-list branch from d0af822 to 90e756a Compare February 28, 2024 03:54
@kriskowal kriskowal merged commit c5d012f into master Feb 28, 2024
14 checks passed
@kriskowal kriskowal deleted the kriskowal-consolidate-list branch February 28, 2024 04:25
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

Successfully merging this pull request may close these issues.

2 participants