@@ -204,12 +204,13 @@ yargs(hideBin(process.argv))
204
204
if ( ! ver ) {
205
205
return "unknown" ;
206
206
}
207
- const { version, commit, path } = ver ;
207
+ const { version, commit, path, remote } = ver ;
208
208
const defaultPath = `${ process . env . HOME } /.ntt-cli/.checkout` ;
209
+ const remoteString = remote . includes ( "wormhole-foundation" ) ? "" : `${ remote } @` ;
209
210
if ( path === defaultPath ) {
210
- return `ntt v${ version } (${ commit } )` ;
211
+ return `ntt v${ version } (${ remoteString } ${ commit } )` ;
211
212
} else {
212
- return `ntt v${ version } (${ commit } ) from ${ path } ` ;
213
+ return `ntt v${ version } (${ remoteString } ${ commit } ) from ${ path } ` ;
213
214
}
214
215
} ) ( ) )
215
216
// config group of commands
@@ -1853,12 +1854,12 @@ function retryWithExponentialBackoff<T>(
1853
1854
return attempt ( 0 ) ;
1854
1855
}
1855
1856
1856
- function nttVersion ( ) : { version : string , commit : string , path : string } | null {
1857
+ function nttVersion ( ) : { version : string , commit : string , path : string , remote : string } | null {
1857
1858
const nttDir = `${ process . env . HOME } /.ntt-cli` ;
1858
1859
try {
1859
1860
const versionFile = fs . readFileSync ( `${ nttDir } /version` ) . toString ( ) . trim ( ) ;
1860
- const [ commit , installPath , version ] = versionFile . split ( "\n" ) ;
1861
- return { version, commit, path : installPath } ;
1861
+ const [ commit , installPath , version , remote ] = versionFile . split ( "\n" ) ;
1862
+ return { version, commit, path : installPath , remote } ;
1862
1863
} catch {
1863
1864
return null ;
1864
1865
}
0 commit comments