@@ -135,14 +135,14 @@ export async function createCLI() {
135135
136136 // download command
137137 program
138- . command ( ' download' )
139- . description ( ' Downloads an asset into specified folder' )
140- . argument ( ' <did>' , ' The asset DID' )
141- . argument ( ' [folder]' , ' Destination folder' , '.' )
142- . argument ( ' [serviceId]' , ' Service ID (optional)' )
143- . option ( ' -d, --did <did>' , ' The asset DID' )
144- . option ( ' -f, --folder [folder]' , ' Destination folder' , '.' )
145- . option ( ' -s, --service <serviceId>' , ' Service ID' )
138+ . command ( " download" )
139+ . description ( " Downloads an asset into specified folder" )
140+ . argument ( " <did>" , " The asset DID" )
141+ . argument ( " [folder]" , " Destination folder" , "." )
142+ . argument ( " [serviceId]" , " Service ID (optional)" )
143+ . option ( " -d, --did <did>" , " The asset DID" )
144+ . option ( " -f, --folder [folder]" , " Destination folder" , "." )
145+ . option ( " -s, --service <serviceId>" , " Service ID" )
146146 . action ( async ( did , folder , serviceId , options ) => {
147147 const assetDid = options . did || did ;
148148 const destFolder = options . folder || folder || '.' ;
@@ -181,25 +181,25 @@ export async function createCLI() {
181181
182182 // startCompute command
183183 program
184- . command ( ' startCompute' )
185- . description ( ' Starts a compute job' )
186- . argument ( ' <datasetDids>' , ' Dataset DIDs (comma-separated) OR (empty array for none)' )
187- . argument ( ' <algoDid>' , ' Algorithm DID' )
188- . argument ( ' <computeEnvId>' , ' Compute environment ID' )
189- . argument ( ' <maxJobDuration>' , ' maxJobDuration for compute job' )
190- . argument ( ' <paymentToken>' , ' Payment token for compute' )
191- . argument ( ' <resources>' , ' Resources of compute environment stringified' )
192- . argument ( ' [serviceIds]' , ' Service IDs (comma-separated; positional mapping with datasetDIDs)' )
193- . argument ( ' [algoServiceId]' , ' Algorithm Service ID (optional)' )
194- . option ( ' -d, --datasets <datasetDids>' , ' Dataset DIDs (comma-separated) OR (empty array for none)' )
195- . option ( ' -a, --algo <algoDid>' , ' Algorithm DID' )
196- . option ( ' -e, --env <computeEnvId>' , ' Compute environment ID' )
197- . option ( ' --maxJobDuration <maxJobDuration>' , ' Compute maxJobDuration' )
198- . option ( ' -t, --token <paymentToken>' , ' Compute payment token' )
199- . option ( ' -s, --services [serviceIds]' , ' Service IDs (comma-separated; positional mapping with datasetDIDs)' )
200- . option ( ' -x, --algo-service [algoServiceId]' , ' Algorithm Service ID (optional)' )
201- . option ( ' --resources <resources>' , ' Compute resources' )
202- . option ( ' --accept [boolean]' , ' Auto-confirm payment for compute job (true/false)' , toBoolean )
184+ . command ( " startCompute" )
185+ . description ( " Starts a compute job" )
186+ . argument ( " <datasetDids>" , " Dataset DIDs (comma-separated) OR (empty array for none)" )
187+ . argument ( " <algoDid>" , " Algorithm DID" )
188+ . argument ( " <computeEnvId>" , " Compute environment ID" )
189+ . argument ( " <maxJobDuration>" , " maxJobDuration for compute job" )
190+ . argument ( " <paymentToken>" , " Payment token for compute" )
191+ . argument ( " <resources>" , " Resources of compute environment stringified" )
192+ . argument ( " [serviceIds]" , " Service IDs (comma-separated; positional mapping with datasetDIDs)" )
193+ . argument ( " [algoServiceId]" , " Algorithm Service ID (optional)" )
194+ . option ( " -d, --datasets <datasetDids>" , " Dataset DIDs (comma-separated) OR (empty array for none)" )
195+ . option ( " -a, --algo <algoDid>" , " Algorithm DID" )
196+ . option ( " -e, --env <computeEnvId>" , " Compute environment ID" )
197+ . option ( " --maxJobDuration <maxJobDuration>" , " Compute maxJobDuration" )
198+ . option ( " -t, --token <paymentToken>" , " Compute payment token" )
199+ . option ( " -s, --services [serviceIds]" , " Service IDs (comma-separated; positional mapping with datasetDIDs)" )
200+ . option ( " -x, --algo-service [algoServiceId]" , " Algorithm Service ID (optional)" )
201+ . option ( " --resources <resources>" , " Compute resources" )
202+ . option ( " --accept [boolean]" , " Auto-confirm payment for compute job (true/false)" , toBoolean )
203203 . action ( async ( datasetDids , algoDid , computeEnvId , maxJobDuration , paymentToken , resources , serviceIds , algoServiceId , options ) => {
204204 const dsDids = options . datasets || datasetDids ;
205205 const aDid = options . algo || algoDid ;
@@ -288,18 +288,18 @@ export async function createCLI() {
288288
289289 // startFreeCompute command
290290 program
291- . command ( ' startFreeCompute' )
292- . description ( ' Starts a FREE compute job' )
293- . argument ( ' <datasetDids>' , ' Dataset DIDs (comma-separated) OR (empty array for none)' )
294- . argument ( ' <algoDid>' , ' Algorithm DID' )
295- . argument ( ' <computeEnvId>' , ' Compute environment ID' )
296- . argument ( ' [serviceIds]' , ' Service IDs (comma-separated; positional mapping with datasetDIDs)' )
297- . argument ( ' [algoServiceId]' , ' Algorithm Service ID (optional)' )
298- . option ( ' -d, --datasets <datasetDids>' , ' Dataset DIDs (comma-separated) OR (empty array for none)' )
299- . option ( ' -a, --algo <algoDid>' , ' Algorithm DID' )
300- . option ( ' -e, --env <computeEnvId>' , ' Compute environment ID' )
301- . option ( ' -s, --services [serviceIds]' , ' Service IDs (comma-separated; positional mapping with datasetDIDs)' )
302- . option ( ' -x, --algo-service [algoServiceId]' , ' Algorithm Service ID (optional)' )
291+ . command ( " startFreeCompute" )
292+ . description ( " Starts a FREE compute job" )
293+ . argument ( " <datasetDids>" , " Dataset DIDs (comma-separated) OR (empty array for none)" )
294+ . argument ( " <algoDid>" , " Algorithm DID" )
295+ . argument ( " <computeEnvId>" , " Compute environment ID" )
296+ . argument ( " [serviceIds]" , " Service IDs (comma-separated; positional mapping with datasetDIDs)" )
297+ . argument ( " [algoServiceId]" , " Algorithm Service ID (optional)" )
298+ . option ( " -d, --datasets <datasetDids>" , " Dataset DIDs (comma-separated) OR (empty array for none)" )
299+ . option ( " -a, --algo <algoDid>" , " Algorithm DID" )
300+ . option ( " -e, --env <computeEnvId>" , " Compute environment ID" )
301+ . option ( " -s, --services [serviceIds]" , " Service IDs (comma-separated; positional mapping with datasetDIDs)" )
302+ . option ( " -x, --algo-service [algoServiceId]" , " Algorithm Service ID (optional)" )
303303 . action ( async ( datasetDids , algoDid , computeEnvId , serviceIds , algoServiceId , options ) => {
304304 const dsDids = options . datasets || datasetDids ;
305305 const aDid = options . algo || algoDid ;
@@ -389,14 +389,14 @@ export async function createCLI() {
389389
390390 // getJobStatus command
391391 program
392- . command ( ' getJobStatus' )
393- . description ( ' Displays the compute job status' )
394- . argument ( ' <datasetDid>' , ' Dataset DID' )
395- . argument ( ' <jobId>' , ' Job ID' )
396- . argument ( ' [agreementId]' , ' Agreement ID' )
397- . option ( ' -d, --dataset <datasetDid>' , ' Dataset DID' )
398- . option ( ' -j, --job <jobId>' , ' Job ID' )
399- . option ( ' -a, --agreement [agreementId]' , ' Agreement ID' )
392+ . command ( " getJobStatus" )
393+ . description ( " Displays the compute job status" )
394+ . argument ( " <datasetDid>" , " Dataset DID" )
395+ . argument ( " <jobId>" , " Job ID" )
396+ . argument ( " [agreementId]" , " Agreement ID" )
397+ . option ( " -d, --dataset <datasetDid>" , " Dataset DID" )
398+ . option ( " -j, --job <jobId>" , " Job ID" )
399+ . option ( " -a, --agreement [agreementId]" , " Agreement ID" )
400400 . action ( async ( datasetDid , jobId , agreementId , options ) => {
401401 const dsDid = options . dataset || datasetDid ;
402402 const jId = options . job || jobId ;
0 commit comments