@h3ravel/musket 0.6.7 → 0.6.8
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.
- package/dist/index.cjs +9 -2
- package/dist/index.d.ts +5 -1
- package/dist/index.js +9 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -963,7 +963,7 @@ var Kernel = class Kernel {
|
|
|
963
963
|
* @param command
|
|
964
964
|
*/
|
|
965
965
|
registerCommands(commands) {
|
|
966
|
-
commands.forEach(this.commands.add);
|
|
966
|
+
commands.forEach((e) => this.commands.add(e));
|
|
967
967
|
return this;
|
|
968
968
|
}
|
|
969
969
|
/**
|
|
@@ -977,13 +977,20 @@ var Kernel = class Kernel {
|
|
|
977
977
|
*
|
|
978
978
|
* @param path
|
|
979
979
|
*/
|
|
980
|
-
|
|
980
|
+
registerDiscoveryPath(path$2) {
|
|
981
|
+
path$2 = Array.isArray(path$2) ? path$2 : [path$2];
|
|
981
982
|
const discoveryPaths = Array.isArray(this.config.discoveryPaths) ? this.config.discoveryPaths : this.config.discoveryPaths ? [this.config.discoveryPaths] : [];
|
|
982
983
|
path$2.forEach((e) => discoveryPaths.push(e));
|
|
983
984
|
this.config.discoveryPaths = discoveryPaths;
|
|
984
985
|
return this;
|
|
985
986
|
}
|
|
986
987
|
/**
|
|
988
|
+
* Get all the registered discovery paths
|
|
989
|
+
*/
|
|
990
|
+
getDiscoveryPaths() {
|
|
991
|
+
return Array.isArray(this.config.discoveryPaths) ? this.config.discoveryPaths : this.config.discoveryPaths ? [this.config.discoveryPaths] : [];
|
|
992
|
+
}
|
|
993
|
+
/**
|
|
987
994
|
* Prepares the CLI for execution
|
|
988
995
|
*/
|
|
989
996
|
bootstrap() {
|
package/dist/index.d.ts
CHANGED
|
@@ -207,7 +207,11 @@ declare class Kernel<A extends Application = Application> {
|
|
|
207
207
|
*
|
|
208
208
|
* @param path
|
|
209
209
|
*/
|
|
210
|
-
|
|
210
|
+
registerDiscoveryPath(path: string | string[]): this;
|
|
211
|
+
/**
|
|
212
|
+
* Get all the registered discovery paths
|
|
213
|
+
*/
|
|
214
|
+
getDiscoveryPaths(): string[];
|
|
211
215
|
/**
|
|
212
216
|
* Prepares the CLI for execution
|
|
213
217
|
*/
|
package/dist/index.js
CHANGED
|
@@ -939,7 +939,7 @@ var Kernel = class Kernel {
|
|
|
939
939
|
* @param command
|
|
940
940
|
*/
|
|
941
941
|
registerCommands(commands) {
|
|
942
|
-
commands.forEach(this.commands.add);
|
|
942
|
+
commands.forEach((e) => this.commands.add(e));
|
|
943
943
|
return this;
|
|
944
944
|
}
|
|
945
945
|
/**
|
|
@@ -953,13 +953,20 @@ var Kernel = class Kernel {
|
|
|
953
953
|
*
|
|
954
954
|
* @param path
|
|
955
955
|
*/
|
|
956
|
-
|
|
956
|
+
registerDiscoveryPath(path$1) {
|
|
957
|
+
path$1 = Array.isArray(path$1) ? path$1 : [path$1];
|
|
957
958
|
const discoveryPaths = Array.isArray(this.config.discoveryPaths) ? this.config.discoveryPaths : this.config.discoveryPaths ? [this.config.discoveryPaths] : [];
|
|
958
959
|
path$1.forEach((e) => discoveryPaths.push(e));
|
|
959
960
|
this.config.discoveryPaths = discoveryPaths;
|
|
960
961
|
return this;
|
|
961
962
|
}
|
|
962
963
|
/**
|
|
964
|
+
* Get all the registered discovery paths
|
|
965
|
+
*/
|
|
966
|
+
getDiscoveryPaths() {
|
|
967
|
+
return Array.isArray(this.config.discoveryPaths) ? this.config.discoveryPaths : this.config.discoveryPaths ? [this.config.discoveryPaths] : [];
|
|
968
|
+
}
|
|
969
|
+
/**
|
|
963
970
|
* Prepares the CLI for execution
|
|
964
971
|
*/
|
|
965
972
|
bootstrap() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@h3ravel/musket",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.8",
|
|
4
4
|
"description": "Musket CLI is a framework-agnostic CLI framework designed to allow you build artisan-like CLI apps and for use in the H3ravel framework.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|