@@ -137,14 +137,14 @@ export async function createCLI() {
137137
138138 // download command
139139 program
140- . command ( " download" )
141- . description ( " Downloads an asset into specified folder" )
142- . argument ( " <did>" , " The asset DID" )
143- . argument ( " [folder]" , " Destination folder" , "." )
144- . argument ( " [serviceId]" , " Service ID (optional)" )
145- . option ( " -d, --did <did>" , " The asset DID" )
146- . option ( " -f, --folder [folder]" , " Destination folder" , "." )
147- . option ( " -s, --service <serviceId>" , " Service ID" )
140+ . command ( ' download' )
141+ . description ( ' Downloads an asset into specified folder' )
142+ . argument ( ' <did>' , ' The asset DID' )
143+ . argument ( ' [folder]' , ' Destination folder' , '.' )
144+ . argument ( ' [serviceId]' , ' Service ID (optional)' )
145+ . option ( ' -d, --did <did>' , ' The asset DID' )
146+ . option ( ' -f, --folder [folder]' , ' Destination folder' , '.' )
147+ . option ( ' -s, --service <serviceId>' , ' Service ID' )
148148 . action ( async ( did , folder , serviceId , options ) => {
149149 const assetDid = options . did || did ;
150150 const destFolder = options . folder || folder || '.' ;
@@ -183,25 +183,25 @@ export async function createCLI() {
183183
184184 // startCompute command
185185 program
186- . command ( " startCompute" )
187- . description ( " Starts a compute job" )
188- . argument ( " <datasetDids>" , " Dataset DIDs (comma-separated) OR (empty array for none)" )
189- . argument ( " <algoDid>" , " Algorithm DID" )
190- . argument ( " <computeEnvId>" , " Compute environment ID" )
191- . argument ( " <maxJobDuration>" , " maxJobDuration for compute job" )
192- . argument ( " <paymentToken>" , " Payment token for compute" )
193- . argument ( " <resources>" , " Resources of compute environment stringified" )
194- . argument ( " [serviceIds]" , " Service IDs (comma-separated; positional mapping with datasetDIDs)" )
195- . argument ( " [algoServiceId]" , " Algorithm Service ID (optional)" )
196- . option ( " -d, --datasets <datasetDids>" , " Dataset DIDs (comma-separated) OR (empty array for none)" )
197- . option ( " -a, --algo <algoDid>" , " Algorithm DID" )
198- . option ( " -e, --env <computeEnvId>" , " Compute environment ID" )
199- . option ( " --maxJobDuration <maxJobDuration>" , " Compute maxJobDuration" )
200- . option ( " -t, --token <paymentToken>" , " Compute payment token" )
201- . option ( " -s, --services [serviceIds]" , " Service IDs (comma-separated; positional mapping with datasetDIDs)" )
202- . option ( " -x, --algo-service [algoServiceId]" , " Algorithm Service ID (optional)" )
203- . option ( " --resources <resources>" , " Compute resources" )
204- . option ( " --accept [boolean]" , " Auto-confirm payment for compute job (true/false)" , toBoolean )
186+ . command ( ' startCompute' )
187+ . description ( ' Starts a compute job' )
188+ . argument ( ' <datasetDids>' , ' Dataset DIDs (comma-separated) OR (empty array for none)' )
189+ . argument ( ' <algoDid>' , ' Algorithm DID' )
190+ . argument ( ' <computeEnvId>' , ' Compute environment ID' )
191+ . argument ( ' <maxJobDuration>' , ' maxJobDuration for compute job' )
192+ . argument ( ' <paymentToken>' , ' Payment token for compute' )
193+ . argument ( ' <resources>' , ' Resources of compute environment stringified' )
194+ . argument ( ' [serviceIds]' , ' Service IDs (comma-separated; positional mapping with datasetDIDs)' )
195+ . argument ( ' [algoServiceId]' , ' Algorithm Service ID (optional)' )
196+ . option ( ' -d, --datasets <datasetDids>' , ' Dataset DIDs (comma-separated) OR (empty array for none)' )
197+ . option ( ' -a, --algo <algoDid>' , ' Algorithm DID' )
198+ . option ( ' -e, --env <computeEnvId>' , ' Compute environment ID' )
199+ . option ( ' --maxJobDuration <maxJobDuration>' , ' Compute maxJobDuration' )
200+ . option ( ' -t, --token <paymentToken>' , ' Compute payment token' )
201+ . option ( ' -s, --services [serviceIds]' , ' Service IDs (comma-separated; positional mapping with datasetDIDs)' )
202+ . option ( ' -x, --algo-service [algoServiceId]' , ' Algorithm Service ID (optional)' )
203+ . option ( ' --resources <resources>' , ' Compute resources' )
204+ . option ( ' --accept [boolean]' , ' Auto-confirm payment for compute job (true/false)' , toBoolean )
205205 . action ( async ( datasetDids , algoDid , computeEnvId , maxJobDuration , paymentToken , resources , serviceIds , algoServiceId , options ) => {
206206 const dsDids = options . datasets || datasetDids ;
207207 const aDid = options . algo || algoDid ;
@@ -276,18 +276,18 @@ export async function createCLI() {
276276
277277 // startFreeCompute command
278278 program
279- . command ( " startFreeCompute" )
280- . description ( " Starts a FREE compute job" )
281- . argument ( " <datasetDids>" , " Dataset DIDs (comma-separated) OR (empty array for none)" )
282- . argument ( " <algoDid>" , " Algorithm DID" )
283- . argument ( " <computeEnvId>" , " Compute environment ID" )
284- . argument ( " [serviceIds]" , " Service IDs (comma-separated; positional mapping with datasetDIDs)" )
285- . argument ( " [algoServiceId]" , " Algorithm Service ID (optional)" )
286- . option ( " -d, --datasets <datasetDids>" , " Dataset DIDs (comma-separated) OR (empty array for none)" )
287- . option ( " -a, --algo <algoDid>" , " Algorithm DID" )
288- . option ( " -e, --env <computeEnvId>" , " Compute environment ID" )
289- . option ( " -s, --services [serviceIds]" , " Service IDs (comma-separated; positional mapping with datasetDIDs)" )
290- . option ( " -x, --algo-service [algoServiceId]" , " Algorithm Service ID (optional)" )
279+ . command ( ' startFreeCompute' )
280+ . description ( ' Starts a FREE compute job' )
281+ . argument ( ' <datasetDids>' , ' Dataset DIDs (comma-separated) OR (empty array for none)' )
282+ . argument ( ' <algoDid>' , ' Algorithm DID' )
283+ . argument ( ' <computeEnvId>' , ' Compute environment ID' )
284+ . argument ( ' [serviceIds]' , ' Service IDs (comma-separated; positional mapping with datasetDIDs)' )
285+ . argument ( ' [algoServiceId]' , ' Algorithm Service ID (optional)' )
286+ . option ( ' -d, --datasets <datasetDids>' , ' Dataset DIDs (comma-separated) OR (empty array for none)' )
287+ . option ( ' -a, --algo <algoDid>' , ' Algorithm DID' )
288+ . option ( ' -e, --env <computeEnvId>' , ' Compute environment ID' )
289+ . option ( ' -s, --services [serviceIds]' , ' Service IDs (comma-separated; positional mapping with datasetDIDs)' )
290+ . option ( ' -x, --algo-service [algoServiceId]' , ' Algorithm Service ID (optional)' )
291291 . action ( async ( datasetDids , algoDid , computeEnvId , serviceIds , algoServiceId , options ) => {
292292 const dsDids = options . datasets || datasetDids ;
293293 const aDid = options . algo || algoDid ;
@@ -377,14 +377,14 @@ export async function createCLI() {
377377
378378 // getJobStatus command
379379 program
380- . command ( " getJobStatus" )
381- . description ( " Displays the compute job status" )
382- . argument ( " <datasetDid>" , " Dataset DID" )
383- . argument ( " <jobId>" , " Job ID" )
384- . argument ( " [agreementId]" , " Agreement ID" )
385- . option ( " -d, --dataset <datasetDid>" , " Dataset DID" )
386- . option ( " -j, --job <jobId>" , " Job ID" )
387- . option ( " -a, --agreement [agreementId]" , " Agreement ID" )
380+ . command ( ' getJobStatus' )
381+ . description ( ' Displays the compute job status' )
382+ . argument ( ' <datasetDid>' , ' Dataset DID' )
383+ . argument ( ' <jobId>' , ' Job ID' )
384+ . argument ( ' [agreementId]' , ' Agreement ID' )
385+ . option ( ' -d, --dataset <datasetDid>' , ' Dataset DID' )
386+ . option ( ' -j, --job <jobId>' , ' Job ID' )
387+ . option ( ' -a, --agreement [agreementId]' , ' Agreement ID' )
388388 . action ( async ( datasetDid , jobId , agreementId , options ) => {
389389 const dsDid = options . dataset || datasetDid ;
390390 const jId = options . job || jobId ;
0 commit comments