@design-edito/cli 0.0.91 → 0.0.93
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/add/index.js +1 -7
- package/add/index.js.map +3 -3
- package/cli/assets/version.txt +1 -1
- package/commit/index.js +1 -7
- package/commit/index.js.map +3 -3
- package/package.json +4 -4
- package/pull/index.js +1 -7
- package/pull/index.js.map +3 -3
- package/push/index.js +1 -7
- package/push/index.js.map +3 -3
- package/reset/index.js +1 -7
- package/reset/index.js.map +3 -3
- package/status/index.js +1 -7
- package/status/index.js.map +3 -3
package/add/index.js
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{
|
|
3
|
-
ERR
|
|
4
|
-
`,o),t&&console.log(`
|
|
5
|
-
stderr:
|
|
6
|
-
`,t),i&&console.log(`
|
|
7
|
-
stdout:
|
|
8
|
-
`,i)})});r.parse(process.argv);
|
|
2
|
+
import{spawn as n}from"child_process";import{program as r}from"commander";r.name("@design-edito/add").description('Shorthand for git add with arguments forwarding (defaults to ".")').allowUnknownOption(!0).arguments("[args...]").action(o=>{let t=o.length>0?o.join(" "):".";n("git",["-c","color.ui=always","add",...t],{stdio:"inherit"}).on("exit",i=>process.exit(i??0))});r.parse(process.argv);
|
|
9
3
|
//# sourceMappingURL=index.js.map
|
package/add/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/add/index.ts"],
|
|
4
|
-
"sourcesContent": ["import {
|
|
5
|
-
"mappings": "AAAA,OAAS,
|
|
6
|
-
"names": ["
|
|
4
|
+
"sourcesContent": ["import { spawn } from 'child_process'\nimport { program } from 'commander'\n\nprogram\n .name('@design-edito/add')\n .description('Shorthand for git add with arguments forwarding (defaults to \".\")')\n .allowUnknownOption(true)\n .arguments('[args...]')\n .action((args: string[]) => {\n const finalArgs = args.length > 0 ? args.join(' ') : '.'\n spawn(\n 'git',\n ['-c', 'color.ui=always', 'add', ...finalArgs],\n { stdio: 'inherit' }\n ).on('exit', code => process.exit(code ?? 0))\n })\n\nprogram.parse(process.argv)\n"],
|
|
5
|
+
"mappings": "AAAA,OAAS,SAAAA,MAAa,gBACtB,OAAS,WAAAC,MAAe,YAExBA,EACG,KAAK,mBAAmB,EACxB,YAAY,mEAAmE,EAC/E,mBAAmB,EAAI,EACvB,UAAU,WAAW,EACrB,OAAQC,GAAmB,CAC1B,IAAMC,EAAYD,EAAK,OAAS,EAAIA,EAAK,KAAK,GAAG,EAAI,IACrDF,EACE,MACA,CAAC,KAAM,kBAAmB,MAAO,GAAGG,CAAS,EAC7C,CAAE,MAAO,SAAU,CACrB,EAAE,GAAG,OAAQC,GAAQ,QAAQ,KAAKA,GAAQ,CAAC,CAAC,CAC9C,CAAC,EAEHH,EAAQ,MAAM,QAAQ,IAAI",
|
|
6
|
+
"names": ["spawn", "program", "args", "finalArgs", "code"]
|
|
7
7
|
}
|
package/cli/assets/version.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.0.
|
|
1
|
+
0.0.93
|
package/commit/index.js
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{
|
|
3
|
-
ERR
|
|
4
|
-
`,o),e&&console.log(`
|
|
5
|
-
stderr:
|
|
6
|
-
`,e),m&&console.log(`
|
|
7
|
-
stdout:
|
|
8
|
-
`,m)})});i.parse(process.argv);
|
|
2
|
+
import{spawn as e}from"child_process";import{program as m}from"commander";m.name("@design-edito/commit").description('Shorthand for git commit -m "<message>"').argument("<message>","Commit message").action(async o=>{e("git",["-c","color.ui=always","commit","-m",o],{stdio:"inherit"}).on("exit",i=>process.exit(i??0))});m.parse(process.argv);
|
|
9
3
|
//# sourceMappingURL=index.js.map
|
package/commit/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/commit/index.ts"],
|
|
4
|
-
"sourcesContent": ["import {
|
|
5
|
-
"mappings": "AAAA,OAAS,
|
|
6
|
-
"names": ["
|
|
4
|
+
"sourcesContent": ["import { spawn } from 'child_process'\nimport { program } from 'commander'\n\nprogram\n .name('@design-edito/commit')\n .description('Shorthand for git commit -m \"<message>\"')\n .argument('<message>', 'Commit message')\n .action(async message => {\n spawn(\n 'git',\n ['-c', 'color.ui=always', 'commit', '-m', message],\n { stdio: 'inherit' }\n ).on('exit', code => process.exit(code ?? 0))\n })\n\nprogram.parse(process.argv)\n"],
|
|
5
|
+
"mappings": "AAAA,OAAS,SAAAA,MAAa,gBACtB,OAAS,WAAAC,MAAe,YAExBA,EACG,KAAK,sBAAsB,EAC3B,YAAY,yCAAyC,EACrD,SAAS,YAAa,gBAAgB,EACtC,OAAO,MAAMC,GAAW,CACvBF,EACE,MACA,CAAC,KAAM,kBAAmB,SAAU,KAAME,CAAO,EACjD,CAAE,MAAO,SAAU,CACrB,EAAE,GAAG,OAAQC,GAAQ,QAAQ,KAAKA,GAAQ,CAAC,CAAC,CAC9C,CAAC,EAEHF,EAAQ,MAAM,QAAQ,IAAI",
|
|
6
|
+
"names": ["spawn", "program", "message", "code"]
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@design-edito/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.93",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "Maxime Fabas",
|
|
6
6
|
"license": "ISC",
|
|
@@ -16,12 +16,12 @@
|
|
|
16
16
|
"cli": "./cli/index.js",
|
|
17
17
|
"commit": "./commit/index.js",
|
|
18
18
|
"make-template": "./make-template/index.js",
|
|
19
|
-
"push": "./push/index.js",
|
|
20
19
|
"pull": "./pull/index.js",
|
|
21
|
-
"serve": "./serve/index.js",
|
|
22
20
|
"reset": "./reset/index.js",
|
|
21
|
+
"push": "./push/index.js",
|
|
22
|
+
"tree": "./tree/index.js",
|
|
23
23
|
"status": "./status/index.js",
|
|
24
|
-
"
|
|
24
|
+
"serve": "./serve/index.js"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@design-edito/tools": "^0.1.69",
|
package/pull/index.js
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{
|
|
3
|
-
ERR
|
|
4
|
-
`,o),i&&console.log(`
|
|
5
|
-
stderr:
|
|
6
|
-
`,i),n&&console.log(`
|
|
7
|
-
stdout:
|
|
8
|
-
`,n)})});r.parse(process.argv);
|
|
2
|
+
import{spawn as t}from"child_process";import{program as r}from"commander";r.name("@design-edito/pull").description("Shorthand for git pull with arguments forwarding").allowUnknownOption(!0).arguments("[args...]").action(o=>{t("git",["-c","color.ui=always","pull",...o],{stdio:"inherit"}).on("exit",i=>process.exit(i??0))});r.parse(process.argv);
|
|
9
3
|
//# sourceMappingURL=index.js.map
|
package/pull/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/pull/index.ts"],
|
|
4
|
-
"sourcesContent": ["import {
|
|
5
|
-
"mappings": "AAAA,OAAS,
|
|
6
|
-
"names": ["
|
|
4
|
+
"sourcesContent": ["import { spawn } from 'child_process'\nimport { program } from 'commander'\n\nprogram\n .name('@design-edito/pull')\n .description('Shorthand for git pull with arguments forwarding')\n .allowUnknownOption(true)\n .arguments('[args...]')\n .action((args: string[]) => {\n spawn(\n 'git',\n ['-c', 'color.ui=always', 'pull', ...args],\n { stdio: 'inherit' }\n ).on('exit', code => process.exit(code ?? 0))\n })\n\nprogram.parse(process.argv)\n"],
|
|
5
|
+
"mappings": "AAAA,OAAS,SAAAA,MAAa,gBACtB,OAAS,WAAAC,MAAe,YAExBA,EACG,KAAK,oBAAoB,EACzB,YAAY,kDAAkD,EAC9D,mBAAmB,EAAI,EACvB,UAAU,WAAW,EACrB,OAAQC,GAAmB,CAC1BF,EACE,MACA,CAAC,KAAM,kBAAmB,OAAQ,GAAGE,CAAI,EACzC,CAAE,MAAO,SAAU,CACrB,EAAE,GAAG,OAAQC,GAAQ,QAAQ,KAAKA,GAAQ,CAAC,CAAC,CAC9C,CAAC,EAEHF,EAAQ,MAAM,QAAQ,IAAI",
|
|
6
|
+
"names": ["spawn", "program", "args", "code"]
|
|
7
7
|
}
|
package/push/index.js
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{
|
|
3
|
-
ERR
|
|
4
|
-
`,o),i&&console.log(`
|
|
5
|
-
stderr:
|
|
6
|
-
`,i),n&&console.log(`
|
|
7
|
-
stdout:
|
|
8
|
-
`,n)})});r.parse(process.argv);
|
|
2
|
+
import{spawn as t}from"child_process";import{program as r}from"commander";r.name("@design-edito/push").description("Shorthand for git push with arguments forwarding").allowUnknownOption(!0).arguments("[args...]").action(o=>{t("git",["-c","color.ui=always","push",...o],{stdio:"inherit"}).on("exit",i=>process.exit(i??0))});r.parse(process.argv);
|
|
9
3
|
//# sourceMappingURL=index.js.map
|
package/push/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/push/index.ts"],
|
|
4
|
-
"sourcesContent": ["import {
|
|
5
|
-
"mappings": "AAAA,OAAS,
|
|
6
|
-
"names": ["
|
|
4
|
+
"sourcesContent": ["import { spawn } from 'child_process'\nimport { program } from 'commander'\n\nprogram\n .name('@design-edito/push')\n .description('Shorthand for git push with arguments forwarding')\n .allowUnknownOption(true)\n .arguments('[args...]')\n .action((args: string[]) => {\n spawn(\n 'git',\n ['-c', 'color.ui=always', 'push', ...args],\n { stdio: 'inherit' }\n ).on('exit', code => process.exit(code ?? 0))\n })\n\nprogram.parse(process.argv)\n"],
|
|
5
|
+
"mappings": "AAAA,OAAS,SAAAA,MAAa,gBACtB,OAAS,WAAAC,MAAe,YAExBA,EACG,KAAK,oBAAoB,EACzB,YAAY,kDAAkD,EAC9D,mBAAmB,EAAI,EACvB,UAAU,WAAW,EACrB,OAAQC,GAAmB,CAC1BF,EACE,MACA,CAAC,KAAM,kBAAmB,OAAQ,GAAGE,CAAI,EACzC,CAAE,MAAO,SAAU,CACrB,EAAE,GAAG,OAAQC,GAAQ,QAAQ,KAAKA,GAAQ,CAAC,CAAC,CAC9C,CAAC,EAEHF,EAAQ,MAAM,QAAQ,IAAI",
|
|
6
|
+
"names": ["spawn", "program", "args", "code"]
|
|
7
7
|
}
|
package/reset/index.js
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{
|
|
3
|
-
ERR
|
|
4
|
-
`,o),e&&console.log(`
|
|
5
|
-
stderr:
|
|
6
|
-
`,e),n&&console.log(`
|
|
7
|
-
stdout:
|
|
8
|
-
`,n)})});r.parse(process.argv);
|
|
2
|
+
import{spawn as e}from"child_process";import{program as r}from"commander";r.name("@design-edito/reset").description("Shorthand for git reset with arguments forwarding").allowUnknownOption(!0).arguments("[args...]").action(t=>{e("git",["-c","color.ui=always","reset",...t],{stdio:"inherit"}).on("exit",o=>process.exit(o??0))});r.parse(process.argv);
|
|
9
3
|
//# sourceMappingURL=index.js.map
|
package/reset/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/reset/index.ts"],
|
|
4
|
-
"sourcesContent": ["import {
|
|
5
|
-
"mappings": "AAAA,OAAS,
|
|
6
|
-
"names": ["
|
|
4
|
+
"sourcesContent": ["import { spawn } from 'child_process'\nimport { program } from 'commander'\n\nprogram\n .name('@design-edito/reset')\n .description('Shorthand for git reset with arguments forwarding')\n .allowUnknownOption(true)\n .arguments('[args...]')\n .action((args: string[]) => {\n spawn(\n 'git',\n ['-c', 'color.ui=always', 'reset', ...args],\n { stdio: 'inherit' }\n ).on('exit', code => process.exit(code ?? 0))\n })\n\nprogram.parse(process.argv)\n"],
|
|
5
|
+
"mappings": "AAAA,OAAS,SAAAA,MAAa,gBACtB,OAAS,WAAAC,MAAe,YAExBA,EACG,KAAK,qBAAqB,EAC1B,YAAY,mDAAmD,EAC/D,mBAAmB,EAAI,EACvB,UAAU,WAAW,EACrB,OAAQC,GAAmB,CAC1BF,EACE,MACA,CAAC,KAAM,kBAAmB,QAAS,GAAGE,CAAI,EAC1C,CAAE,MAAO,SAAU,CACrB,EAAE,GAAG,OAAQC,GAAQ,QAAQ,KAAKA,GAAQ,CAAC,CAAC,CAC9C,CAAC,EAEHF,EAAQ,MAAM,QAAQ,IAAI",
|
|
6
|
+
"names": ["spawn", "program", "args", "code"]
|
|
7
7
|
}
|
package/status/index.js
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{
|
|
3
|
-
ERR
|
|
4
|
-
`,o),t&&console.log(`
|
|
5
|
-
stderr:
|
|
6
|
-
`,t),n&&console.log(`
|
|
7
|
-
stdout:
|
|
8
|
-
`,n)})});s.parse(process.argv);
|
|
2
|
+
import{spawn as s}from"child_process";import{program as t}from"commander";t.name("@design-edito/status").description("Shorthand for git status with arguments forwarding").allowUnknownOption(!0).arguments("[args...]").action(r=>{s("git",["-c","color.ui=always","status",...r],{stdio:"inherit"}).on("exit",o=>process.exit(o??0))});t.parse(process.argv);
|
|
9
3
|
//# sourceMappingURL=index.js.map
|
package/status/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/status/index.ts"],
|
|
4
|
-
"sourcesContent": ["import {
|
|
5
|
-
"mappings": "AAAA,OAAS,
|
|
6
|
-
"names": ["
|
|
4
|
+
"sourcesContent": ["import { spawn } from 'child_process'\nimport { program } from 'commander'\n\nprogram\n .name('@design-edito/status')\n .description('Shorthand for git status with arguments forwarding')\n .allowUnknownOption(true)\n .arguments('[args...]')\n .action((args: string[]) => {\n spawn(\n 'git',\n ['-c', 'color.ui=always', 'status', ...args],\n { stdio: 'inherit' }\n ).on('exit', code => process.exit(code ?? 0))\n })\n\nprogram.parse(process.argv)\n"],
|
|
5
|
+
"mappings": "AAAA,OAAS,SAAAA,MAAa,gBACtB,OAAS,WAAAC,MAAe,YAExBA,EACG,KAAK,sBAAsB,EAC3B,YAAY,oDAAoD,EAChE,mBAAmB,EAAI,EACvB,UAAU,WAAW,EACrB,OAAQC,GAAmB,CAC1BF,EACE,MACA,CAAC,KAAM,kBAAmB,SAAU,GAAGE,CAAI,EAC3C,CAAE,MAAO,SAAU,CACrB,EAAE,GAAG,OAAQC,GAAQ,QAAQ,KAAKA,GAAQ,CAAC,CAAC,CAC9C,CAAC,EAEHF,EAAQ,MAAM,QAAQ,IAAI",
|
|
6
|
+
"names": ["spawn", "program", "args", "code"]
|
|
7
7
|
}
|