Skip to content

Commit

Permalink
Adds launch command line method bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
Chase McClure committed May 28, 2024
1 parent f4c1244 commit 3a03f69
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions client.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export namespace apps {
export function availableGameLanguages(): Array<string>
export function currentGameLanguage(): string
export function currentBetaName(): string | null
export function launchCommandLine(): string
}
export namespace auth {
/**
Expand Down
6 changes: 6 additions & 0 deletions src/api/apps.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,10 @@ pub mod apps {
let client = crate::client::get_client();
client.apps().current_beta_name()
}

#[napi]
pub fn launch_command_line() -> String {
let client = crate::client::get_client();
client.apps().launch_command_line()
}
}

0 comments on commit 3a03f69

Please sign in to comment.