We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81fdc64 commit 6365e02Copy full SHA for 6365e02
lib/cli/src/commands/whoami.rs
@@ -12,8 +12,9 @@ impl Whoami {
12
/// Execute `wasmer whoami`
13
pub fn execute(&self) -> Result<(), anyhow::Error> {
14
let registry = self.env.registry_endpoint()?;
15
+ let token = self.env.token();
16
let (registry, username) =
- wasmer_registry::whoami(self.env.dir(), Some(registry.as_str()), None)?;
17
+ wasmer_registry::whoami(self.env.dir(), Some(registry.as_str()), token.as_deref())?;
18
println!("logged into registry {registry:?} as user {username:?}");
19
Ok(())
20
}
0 commit comments