Skip to content

Commit 6365e02

Browse files
author
Michael-F-Bryan
committed
Fixed a bug in "wasmer whoami" where we wouldn't respect the --token flag
1 parent 81fdc64 commit 6365e02

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/cli/src/commands/whoami.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ impl Whoami {
1212
/// Execute `wasmer whoami`
1313
pub fn execute(&self) -> Result<(), anyhow::Error> {
1414
let registry = self.env.registry_endpoint()?;
15+
let token = self.env.token();
1516
let (registry, username) =
16-
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())?;
1718
println!("logged into registry {registry:?} as user {username:?}");
1819
Ok(())
1920
}

0 commit comments

Comments
 (0)