You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`Unitless base border-radius in px (deprecated, use JSON config file instead)`,
100
118
(radiusAsString)=>Number(radiusAsString),
101
119
4,
102
120
)
103
-
.option('--theme <string>','Theme name (ignored when using JSON config file)',DEFAULT_THEME_NAME)
104
-
.option('--config <string>',`Path to config file (default: "${DEFAULT_CONFIG_FILEPATH}")`)
121
+
.option('--theme <string>','Theme name (deprecated, use JSON config file instead)',DEFAULT_THEME_NAME)
105
122
.action(async(opts,cmd)=>{
123
+
if(
124
+
opts.mainColors||
125
+
opts.supportColors||
126
+
opts.neutralColor||
127
+
(opts.borderRadius&&opts.borderRadius!==4)||
128
+
(opts.theme&&opts.theme!==DEFAULT_THEME_NAME)||
129
+
(opts.fontFamily&&opts.fontFamily!==DEFAULT_FONT)
130
+
){
131
+
console.warn(
132
+
pc.yellow(`\n ⚠️ Using CLI options for ${pc.bold(`colors, border radius, theme, or font family is deprecated`)} and will be removed in a future release.
133
+
\n ⚠️ Please use a JSON config file instead.`),
134
+
);
135
+
}
136
+
106
137
console.log(figletAscii);
107
138
if(opts.dry){
108
139
console.log(`Performing dry run, no files will be written`);
0 commit comments