11/**
2- * `linux auth ` — inject .ROBLOSECURITY cookie into Wine's Credential Manager
3- * so Studio can authenticate.
2+ * `linux inject-credentials ` — inject .ROBLOSECURITY cookie into Wine's
3+ * Credential Manager so Studio can authenticate.
44 */
55
66import { defineCommand } from '../../framework/define-command.js' ;
@@ -42,7 +42,7 @@ function readStdinAsync(): Promise<string> {
4242// Handler
4343// ---------------------------------------------------------------------------
4444
45- export async function authHandlerAsync ( args : AuthArgs ) : Promise < AuthResult > {
45+ export async function injectCredentialsHandlerAsync ( args : AuthArgs ) : Promise < AuthResult > {
4646 try {
4747 const envError = await checkLinuxEnvironmentAsync ( ) ;
4848 if ( envError ) {
@@ -87,7 +87,7 @@ export async function authHandlerAsync(args: AuthArgs): Promise<AuthResult> {
8787 // Inject credentials
8888 await linux . injectCredentialsAsync ( { cookie, config } ) ;
8989
90- OutputHelper . info ( 'Authentication complete .' ) ;
90+ OutputHelper . info ( 'Credentials injected .' ) ;
9191 OutputHelper . hint (
9292 'Next: run "studio-bridge process launch" to start Studio'
9393 ) ;
@@ -104,9 +104,9 @@ export async function authHandlerAsync(args: AuthArgs): Promise<AuthResult> {
104104// Command definition
105105// ---------------------------------------------------------------------------
106106
107- export const linuxAuthCommand = defineCommand < AuthArgs , AuthResult > ( {
107+ export const linuxInjectCredentialsCommand = defineCommand < AuthArgs , AuthResult > ( {
108108 group : 'linux' ,
109- name : 'auth ' ,
109+ name : 'inject-credentials ' ,
110110 description : 'Inject .ROBLOSECURITY cookie into Wine Credential Manager (within Docker image or Linux with Wine)' ,
111111 category : 'infrastructure' ,
112112 safety : 'none' ,
@@ -117,5 +117,5 @@ export const linuxAuthCommand = defineCommand<AuthArgs, AuthResult>({
117117 'Cookie value (or "-" to read from stdin). Falls back to $ROBLOSECURITY env var or interactive prompt.' ,
118118 } ) ,
119119 } ,
120- handler : async ( args ) => authHandlerAsync ( args ) ,
120+ handler : async ( args ) => injectCredentialsHandlerAsync ( args ) ,
121121} ) ;
0 commit comments