@@ -41,14 +41,14 @@ export const createFeatureAction = async (
4141 ) ;
4242 } catch ( error ) {
4343 spinner ?. fail ( "Loading features failed" ) ;
44- handleError ( error , "Features Create" ) ;
44+ void handleError ( error , "Features Create" ) ;
4545 }
4646
4747 try {
4848 if ( ! name ) {
4949 name = await input ( {
5050 message : "New feature name:" ,
51- validate : ( input ) => input . length > 0 || "Name is required" ,
51+ validate : ( text ) => text . length > 0 || "Name is required" ,
5252 } ) ;
5353 }
5454
@@ -68,7 +68,7 @@ export const createFeatureAction = async (
6868 ) ;
6969 } catch ( error ) {
7070 spinner ?. fail ( "Feature creation failed" ) ;
71- handleError ( error , "Features Create" ) ;
71+ void handleError ( error , "Features Create" ) ;
7272 }
7373} ;
7474
@@ -85,7 +85,7 @@ export const listFeaturesAction = async ({ appId }: AppIdArgs) => {
8585 console . table ( features ) ;
8686 } catch ( error ) {
8787 spinner . fail ( "Loading features failed" ) ;
88- handleError ( error , "Features List" ) ;
88+ void handleError ( error , "Features List" ) ;
8989 }
9090} ;
9191
@@ -106,7 +106,7 @@ export const generateTypesAction = async ({
106106 ) ;
107107 } catch ( error ) {
108108 spinner ?. fail ( "Loading features failed" ) ;
109- handleError ( error , "Features Types" ) ;
109+ void handleError ( error , "Features Types" ) ;
110110 }
111111
112112 try {
@@ -119,11 +119,11 @@ export const generateTypesAction = async ({
119119 console . log ( chalk . green ( `Generated types for ${ appId } .` ) ) ;
120120 } catch ( error ) {
121121 spinner ?. fail ( "Type generation failed" ) ;
122- handleError ( error , "Features Types" ) ;
122+ void handleError ( error , "Features Types" ) ;
123123 }
124124} ;
125125
126- export function registerFeatureCommands ( program : Command ) {
126+ export function registerFeatureCommands ( cli : Command ) {
127127 const featuresCommand = new Command ( "features" ) . description (
128128 "Manage features" ,
129129 ) ;
@@ -165,5 +165,5 @@ export function registerFeatureCommands(program: Command) {
165165 )
166166 . action ( generateTypesAction ) ;
167167
168- program . addCommand ( featuresCommand ) ;
168+ cli . addCommand ( featuresCommand ) ;
169169}
0 commit comments