-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add filter to list, and use that to make resolve
command work.
#49
Conversation
@stefan-mysten is attempting to deploy a commit to the Sui Foundation team on Vercel, but is not a member of this team. To resolve this issue, you can:
To read more about collaboration on Vercel, click here. |
if let Some(ref filter) = filter { | ||
if is_name(filter) { | ||
if &name == filter { | ||
return Ok(CommandOutput::List(vec![App { | ||
name: name.clone(), | ||
package_info: vec![ | ||
(PackageInfoNetwork::Testnet, pkg_testnet), | ||
(PackageInfoNetwork::Mainnet, pkg_mainnet), | ||
], | ||
}])); | ||
} | ||
} | ||
// it is an address | ||
else { | ||
if let Some(ref pkg) = pkg_testnet { | ||
if &pkg.package_address.to_string() == filter { | ||
return Ok(CommandOutput::List(vec![App { | ||
name: name.clone(), | ||
package_info: vec![ | ||
(PackageInfoNetwork::Testnet, pkg_testnet), | ||
(PackageInfoNetwork::Mainnet, pkg_mainnet), | ||
], | ||
}])); | ||
} | ||
} | ||
if let Some(ref pkg) = pkg_mainnet { | ||
if &pkg.package_address.to_string() == filter { | ||
return Ok(CommandOutput::List(vec![App { | ||
name: name.clone(), | ||
package_info: vec![ | ||
(PackageInfoNetwork::Testnet, pkg_testnet), | ||
(PackageInfoNetwork::Mainnet, pkg_mainnet), | ||
], | ||
}])); | ||
} | ||
} | ||
} | ||
} |
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 we can reduce the nesting here, but nonblocking and I'll merge and fix up. want to get these changes in before doing a rebase
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.
thanks!
By name -- which is the same as
mvr resolve @mvr-tst/first-app
By address
Resolve by name
Wrong name