11import { join } from "node:path" ;
2- import { Exit , color , log , positionals , spinner , text } from "@r5n/cli-core" ;
2+ import { color , Exit , log , positionals , spinner , text } from "@r5n/cli-core" ;
33import { BaseCommand , type Ctx } from "../base-command" ;
44import { createProvider } from "../providers" ;
55import type { RunnerEntry } from "../types" ;
@@ -24,7 +24,9 @@ export class CreateCommand extends BaseCommand {
2424
2525 const count = ctx . interactive
2626 ? await this . promptCount ( profile . numberOfMachines )
27- : ( ctx . positionals . count ? Number . parseInt ( ctx . positionals . count , 10 ) : profile . numberOfMachines ) ;
27+ : ctx . positionals . count
28+ ? Number . parseInt ( ctx . positionals . count , 10 )
29+ : profile . numberOfMachines ;
2830
2931 if ( ! count || count < 1 ) {
3032 throw new Exit ( "Runner count must be at least 1" ) ;
@@ -73,7 +75,9 @@ export class CreateCommand extends BaseCommand {
7375
7476 const isDefault = profileName === ctx . config . get ( "defaultProfile" ) ;
7577 const profileSuffix = isDefault ? "" : ` ${ profileName } ` ;
76- log . info ( `${ color . green ( "Created" ) } ${ toCreate } runner(s) for "${ profileName } ". Run ${ color . green ( `hydra start${ profileSuffix } ` ) } to start them.` ) ;
78+ log . info (
79+ `${ color . green ( "Created" ) } ${ toCreate } runner(s) for "${ profileName } ". Run ${ color . green ( `hydra start${ profileSuffix } ` ) } to start them.` ,
80+ ) ;
7781 }
7882
7983 private async promptCount ( defaultCount : number ) : Promise < number > {
0 commit comments