Skip to content

Commit

Permalink
Update from master, fix merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
fschutt committed Nov 17, 2022
1 parent 3bb8ffd commit 33a2585
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/cli/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use crate::commands::CreateExe;
use crate::commands::CreateObj;
#[cfg(feature = "wast")]
use crate::commands::Wast;
use crate::commands::{Cache, Config, Inspect, List, Login, Run, SelfUpdate, Validate};
use crate::commands::{Cache, Config, Inspect, List, Login, Run, SelfUpdate, Validate, Whoami};
use crate::error::PrettyError;
use clap::{CommandFactory, ErrorKind, Parser};
use std::fmt;
Expand Down
2 changes: 1 addition & 1 deletion lib/cli/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pub use create_exe::*;
pub use create_obj::*;
#[cfg(feature = "wast")]
pub use wast::*;
pub use {cache::*, config::*, inspect::*, list::*, login::*, run::*, self_update::*, validate::*};
pub use {cache::*, config::*, inspect::*, list::*, login::*, run::*, self_update::*, validate::*, whoami::*};

/// The kind of object format to emit.
#[derive(Debug, Copy, Clone, clap::Parser)]
Expand Down
8 changes: 8 additions & 0 deletions lib/registry/src/graphql.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,14 @@ mod proxy {
)]
pub(crate) struct GetPackageVersionQuery;

#[derive(GraphQLQuery)]
#[graphql(
schema_path = "graphql/schema.graphql",
query_path = "graphql/queries/whoami.graphql",
response_derives = "Debug"
)]
pub(crate) struct WhoAmIQuery;

#[derive(GraphQLQuery)]
#[graphql(
schema_path = "graphql/schema.graphql",
Expand Down

0 comments on commit 33a2585

Please sign in to comment.