@shoper/cli 0.3.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -8,6 +8,5 @@ export const CLI_COMMANDS_NAMES = {
|
|
|
8
8
|
authRemoveToken: `${CLI_AUTH_TOPIC_NAME}:remove-token`,
|
|
9
9
|
authSwitchToken: `${CLI_AUTH_TOPIC_NAME}:switch-token`,
|
|
10
10
|
authLogout: `${CLI_AUTH_TOPIC_NAME}:logout`,
|
|
11
|
-
uiDump: 'ui-dump'
|
|
12
|
-
cleanCache: 'clean-cache'
|
|
11
|
+
uiDump: 'ui-dump'
|
|
13
12
|
};
|
|
@@ -50,6 +50,14 @@ const getCommandWithTopicBaseInitializers = () => {
|
|
|
50
50
|
case THEME_TOPIC_NAME: {
|
|
51
51
|
return getThemeInitializersForCommand(command);
|
|
52
52
|
}
|
|
53
|
+
case CLI_AUTH_TOPIC_NAME: {
|
|
54
|
+
switch (`${CLI_AUTH_TOPIC_NAME}:${command}`) {
|
|
55
|
+
case CLI_COMMANDS_NAMES.authLogout: {
|
|
56
|
+
return [ThemesListInitializer, ThemeActionsInitializer];
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
break;
|
|
60
|
+
}
|
|
53
61
|
}
|
|
54
62
|
return [];
|
|
55
63
|
};
|
|
@@ -60,9 +68,6 @@ const getCommandWithoutTopicBaseInitializers = () => {
|
|
|
60
68
|
case CLI_COMMANDS_NAMES.update: {
|
|
61
69
|
return [CliVersionInitializer];
|
|
62
70
|
}
|
|
63
|
-
case CLI_COMMANDS_NAMES.cleanCache: {
|
|
64
|
-
return [ThemesListInitializer, ThemeActionsInitializer];
|
|
65
|
-
}
|
|
66
71
|
}
|
|
67
72
|
return [];
|
|
68
73
|
};
|