We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6260aad commit 6e08939Copy full SHA for 6e08939
1 file changed
src/commands/createIcon.ts
@@ -4,12 +4,10 @@ import { fetchXml } from '../libs/fetchXml';
4
import { generateComponent } from '../libs/generateComponent';
5
6
export const createIcon = () => {
7
- const {
8
- symbol_url: url,
9
- } = getConfig();
+ const config = getConfig();
10
11
- fetchXml(url).then((result) => {
12
- generateComponent(result);
+ fetchXml(config.symbol_url).then((result) => {
+ generateComponent(result, config);
13
}).catch((e) => {
14
console.error(colors.red(e.message || 'Unknown Error'));
15
process.exit(1);
0 commit comments