File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
examples/cli/src/commands Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -82,10 +82,22 @@ export const upload: Command = command(
8282 } ,
8383 onUploadComplete ( pieceCid ) {
8484 p . log . info ( `Upload complete! PieceCID: ${ pieceCid } ` )
85+ const serviceURL = context . provider . products . PDP ?. data . serviceURL
86+ if ( serviceURL ) {
87+ p . log . info (
88+ `Retrieval URL: ${ serviceURL . replace ( / \/ $ / , '' ) } /piece/${ pieceCid } `
89+ )
90+ }
8591 } ,
8692 } )
8793
8894 p . log . success ( `File uploaded ${ upload . pieceId } ` )
95+ const serviceURL = context . provider . products . PDP ?. data . serviceURL
96+ if ( serviceURL ) {
97+ p . log . info (
98+ `Retrieval URL: ${ serviceURL . replace ( / \/ $ / , '' ) } /piece/${ upload . pieceCid } `
99+ )
100+ }
89101 } catch ( error ) {
90102 p . log . error ( ( error as Error ) . message )
91103 p . outro ( 'Please try again' )
You can’t perform that action at this time.
0 commit comments