@@ -106,7 +106,7 @@ metadata.plugin = async function({__plugins, name, logger}) {
106
106
}
107
107
//Inputs checks
108
108
const result = Object . fromEntries (
109
- Object . entries ( inputs ) . map ( ( [ key , { type, format, default :defaulted , min, max, values, inherits} ] ) => [
109
+ Object . entries ( inputs ) . map ( ( [ key , { type, format, default :defaulted , min, max, values, inherits : _inherits } ] ) => [
110
110
//Format key
111
111
metadata . to . query ( key , { name} ) ,
112
112
//Format value
@@ -277,20 +277,34 @@ metadata.plugin = async function({__plugins, name, logger}) {
277
277
let row = [ ]
278
278
{
279
279
let cell = [ ]
280
- if ( o . required )
281
- cell . push ( "✔️" ) , flags . add ( "required" )
282
- if ( type === "token" )
283
- cell . push ( "🔐" ) , flags . add ( "secret" )
284
- if ( o . inherits )
285
- cell . push ( "⏩" ) , flags . add ( "inherits" )
286
- if ( o . global )
287
- cell . push ( "⏭️" ) , flags . add ( "global" )
288
- if ( o . testing )
289
- cell . push ( "🔧" ) , flags . add ( "testing" )
290
- if ( ! Object . keys ( previous ?. inputs ?? { } ) . includes ( option ) )
291
- cell . push ( "✨" ) , flags . add ( "beta" )
292
- if ( o . extras )
293
- cell . push ( "🧰" ) , flags . add ( "extras" )
280
+ if ( o . required ) {
281
+ cell . push ( "✔️" )
282
+ flags . add ( "required" )
283
+ }
284
+ if ( type === "token" ) {
285
+ cell . push ( "🔐" )
286
+ flags . add ( "secret" )
287
+ }
288
+ if ( o . inherits ) {
289
+ cell . push ( "⏩" )
290
+ flags . add ( "inherits" )
291
+ }
292
+ if ( o . global ) {
293
+ cell . push ( "⏭️" )
294
+ flags . add ( "global" )
295
+ }
296
+ if ( o . testing ) {
297
+ cell . push ( "🔧" )
298
+ flags . add ( "testing" )
299
+ }
300
+ if ( ! Object . keys ( previous ?. inputs ?? { } ) . includes ( option ) ) {
301
+ cell . push ( "✨" )
302
+ flags . add ( "beta" )
303
+ }
304
+ if ( o . extras ) {
305
+ cell . push ( "🧰" )
306
+ flags . add ( "extras" )
307
+ }
294
308
cell = cell . map ( flag => `<sup>${ flag } </sup>` )
295
309
cell . unshift ( `${ "`" } ${ option } ${ "`" } ` )
296
310
row . push ( cell . join ( " " ) )
0 commit comments