55 type VolumeId ,
66 type VolumeSlug ,
77} from "@deno/sandbox" ;
8- import { green , magenta , red } from "@std/fmt/colors" ;
8+ import { green , magenta , red , yellow } from "@std/fmt/colors" ;
99import { pooledMap } from "@std/async" ;
1010import { expandGlob } from "@std/fs" ;
1111import { join } from "@std/path" ;
@@ -19,6 +19,7 @@ import {
1919} from "../util.ts" ;
2020import { createTrpcClient , getAuth , tokenStorage } from "../auth.ts" ;
2121import { createSwitchCommand , type GlobalContext } from "../main.ts" ;
22+ import { VERSION } from "../version.ts" ;
2223
2324import { volumesCommand } from "./volumes.ts" ;
2425import { snapshotsCommand } from "./snapshot.ts" ;
@@ -588,6 +589,7 @@ Example:
588589
589590export const sandboxCommand = new Command < GlobalContext > ( )
590591 . name ( "deno sandbox" )
592+ . version ( VERSION )
591593 . description ( "Interact with sandboxes" )
592594 . globalOption ( "--endpoint <endpoint:string>" , "the endpoint" , {
593595 default : "https://console.deno.com" ,
@@ -615,6 +617,14 @@ export const sandboxCommand = new Command<GlobalContext>()
615617 if ( tokenEnv ) {
616618 tokenStorage . set ( tokenEnv , true ) ;
617619 }
620+
621+ if ( options . debug ) {
622+ console . error (
623+ yellow (
624+ `Debug mode is enabled (deno ${ Deno . version . deno } , @deno/deploy ${ VERSION } , endpoint=${ options . endpoint } )` ,
625+ ) ,
626+ ) ;
627+ }
618628 } )
619629 . action ( ( ) => {
620630 sandboxCommand . showHelp ( ) ;
0 commit comments