git-devbox
Advanced tools
Comparing version 3.2.0 to 3.2.1
@@ -44,7 +44,9 @@ #! /usr/bin/env node | ||
var githubUsername = _a.githubUsername, githubPersonalToken = _a.githubPersonalToken, registry = _a.registry; | ||
program.option('--user <namespace>', 'with user namespace'); | ||
program.option('--org <namespace>', 'with org namespace'); | ||
program.option('--archived', 'include archived repos', false); | ||
program.option('--forked', 'include forked repos', false); | ||
program.action(function (opts) { return __awaiter(void 0, void 0, void 0, function () { | ||
program | ||
.option('--user <namespace>', 'with user namespace') | ||
.option('--org <namespace>', 'with org namespace') | ||
.option('--archived', 'include archived repos', false) | ||
.option('--forked', 'include forked repos', false) | ||
.description('sync workspace with github') | ||
.action(function (opts) { return __awaiter(void 0, void 0, void 0, function () { | ||
var workspace, user, org, archived, forked; | ||
@@ -51,0 +53,0 @@ return __generator(this, function (_a) { |
@@ -43,4 +43,6 @@ #! /usr/bin/env node | ||
var registry = _a.registry; | ||
program.argument('<urlConnection>'); | ||
program.action(function (urlConnection, opts) { return __awaiter(void 0, void 0, void 0, function () { | ||
program | ||
.description('add repo to workspace') | ||
.argument('<urlConnection>') | ||
.action(function (urlConnection, opts) { return __awaiter(void 0, void 0, void 0, function () { | ||
var workspace, item; | ||
@@ -54,3 +56,8 @@ return __generator(this, function (_a) { | ||
return [2]; | ||
return [4, registry.add(item)]; | ||
return [4, registry | ||
.add(item) | ||
.then(function (_a) { | ||
var workspace = _a.workspace, urlConnection = _a.urlConnection; | ||
return console.info({ workspace: workspace, urlConnection: urlConnection }); | ||
})]; | ||
case 1: | ||
@@ -57,0 +64,0 @@ _a.sent(); |
@@ -44,3 +44,3 @@ #! /usr/bin/env node | ||
var registry = _a.registry, workspacesRoot = _a.workspacesRoot; | ||
program.action(function (opts) { return __awaiter(void 0, void 0, void 0, function () { | ||
program.description('clone workspace repos').action(function (opts) { return __awaiter(void 0, void 0, void 0, function () { | ||
var workspace, namespace, host, slug, keyword; | ||
@@ -47,0 +47,0 @@ return __generator(this, function (_a) { |
@@ -47,2 +47,3 @@ #! /usr/bin/env node | ||
.option('-ds, --display-slug', 'display slug only', false) | ||
.description('list repos registered on workspace') | ||
.action(function (opts) { return __awaiter(void 0, void 0, void 0, function () { | ||
@@ -49,0 +50,0 @@ var workspace, namespace, host, slug, keyword; |
@@ -19,5 +19,5 @@ "use strict"; | ||
var slug = groups['slug']; | ||
var ID = [workspace, namespace, slug].join('_'); | ||
var id = [workspace, namespace, slug].join('_'); | ||
return { | ||
ID: ID, | ||
id: id, | ||
urlConnection: urlConnection, | ||
@@ -24,0 +24,0 @@ workspace: workspace, |
@@ -80,4 +80,4 @@ "use strict"; | ||
var path_1 = __importDefault(require("path")); | ||
var leveldb_registry_1 = require("./leveldb-registry"); | ||
var fs = __importStar(require("fs")); | ||
var leveldb_registry_1 = require("leveldb-registry"); | ||
var getConfiguration = function () { return __awaiter(void 0, void 0, void 0, function () { | ||
@@ -104,3 +104,3 @@ var list, config, gitConfig, registryPath, registry; | ||
registryPath = path_1["default"].resolve(gitConfig.workspacesRoot, '.git-devbox'); | ||
registry = (0, leveldb_registry_1.leveldbRegistry)(registryPath); | ||
registry = (0, leveldb_registry_1.leveldbRegistry)({ localPath: registryPath }); | ||
return [2, __assign(__assign({}, gitConfig), { registry: registry })]; | ||
@@ -107,0 +107,0 @@ } |
@@ -52,2 +52,3 @@ "use strict"; | ||
fn(configuration, program); | ||
program.version(require('../../package.json').version); | ||
program.parse(process.argv); | ||
@@ -54,0 +55,0 @@ return [2]; |
@@ -85,3 +85,6 @@ "use strict"; | ||
return [3, 4]; | ||
return [4, handler(item)]; | ||
return [4, handler(item).then(function (_a) { | ||
var workspace = _a.workspace, urlConnection = _a.urlConnection; | ||
return console.info({ workspace: workspace, urlConnection: urlConnection }); | ||
})]; | ||
case 3: | ||
@@ -88,0 +91,0 @@ _b.sent(); |
{ | ||
"name": "git-devbox", | ||
"version": "3.2.0", | ||
"version": "3.2.1", | ||
"description": "git cli extensions", | ||
@@ -45,4 +45,2 @@ "preferGlobal": false, | ||
"@types/jest": "^29.2.5", | ||
"@types/leveldown": "^4.0.3", | ||
"@types/levelup": "^5.1.2", | ||
"@types/lodash": "^4.14.191", | ||
@@ -60,4 +58,3 @@ "@types/node": "^18.11.18", | ||
"inquirer": "^8.2.5", | ||
"leveldown": "^6.1.1", | ||
"levelup": "^5.1.1", | ||
"leveldb-registry": "^1.0.0", | ||
"lodash": "^4.17.21", | ||
@@ -64,0 +61,0 @@ "simple-git": "^3.16.0", |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
7
10
0
88712
26
1353
+ Addedleveldb-registry@^1.0.0
+ Addedleveldb-registry@1.2.0(transitive)
- Removedleveldown@^6.1.1
- Removedlevelup@^5.1.1