🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@swsdk/plugin-config

Package Overview
Dependencies
Maintainers
2
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@swsdk/plugin-config - npm Package Compare versions

Comparing version

to
4.5.5-next.6

7

lib/commands/config/set.d.ts

@@ -1,2 +0,1 @@

import { flags } from '@oclif/command';
import { Base } from '@swsdk/core';

@@ -6,7 +5,7 @@ export declare class Set extends Base {

static flags: {
'git-protocol': flags.IOptionFlag<string | undefined>;
owner: flags.IOptionFlag<string | undefined>;
help: import("@oclif/parser/lib/flags").IBooleanFlag<void>;
'git-protocol': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
owner: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
help: import("@oclif/core/lib/interfaces").BooleanFlag<void>;
};
run(): Promise<void>;
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Set = void 0;
const command_1 = require("@oclif/command");
const core_1 = require("@swsdk/core");
const core_1 = require("@oclif/core");
const core_2 = require("@swsdk/core");
const show_1 = require("./show");
const node_fs_1 = require("node:fs");
const src_1 = require("@swsdk/core/src");
// noinspection JSUnusedGlobalSymbols
class Set extends core_1.Base {
class Set extends core_2.Base {
async run() {
const { flags } = this.parse(Set);
const { flags } = await this.parse(Set);
const { owner, 'git-protocol': gitProtocol, } = flags;
const configDir = this.config.configDir;
if (!await (0, core_1.directoryExists)(configDir)) {
if (!await (0, core_2.directoryExists)(configDir)) {
await node_fs_1.promises.mkdir(configDir, { recursive: true });
}
const configService = new src_1.ConfigService(configDir);
const configService = new core_2.ConfigService(configDir);
const loaded = await configService.loadConfig();
const updated = Object.assign(loaded || core_1.ConfigTypeDefault, {
const updated = Object.assign(loaded || core_2.ConfigTypeDefault, {
owner,

@@ -30,8 +29,8 @@ gitProtocol,

Set.description = 'Use to set config options';
Set.flags = Object.assign(Object.assign({}, core_1.Base.flags), { 'git-protocol': command_1.flags.string({
Set.flags = Object.assign(Object.assign({}, core_2.Base.flags), { 'git-protocol': core_1.Flags.string({
description: 'the protocol to use for git clone and push operations',
options: ['https', 'ssh'],
}), owner: command_1.flags.string({
}), owner: core_1.Flags.string({
description: 'the default GitHub Owner',
}), help: command_1.flags.help({ char: 'h' }) });
}), help: core_1.Flags.help({ char: 'h' }) });
//# sourceMappingURL=set.js.map

@@ -5,6 +5,6 @@ import { Base } from '@swsdk/core';

static flags: {
debug: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
help: import("@oclif/parser/lib/flags").IBooleanFlag<void>;
debug: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
help: import("@oclif/core/lib/interfaces").BooleanFlag<void>;
};
run(): Promise<void>;
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Show = void 0;
const tslib_1 = require("tslib");
const command_1 = require("@oclif/command");
const core_1 = require("@swsdk/core");
const cli_ux_1 = (0, tslib_1.__importDefault)(require("cli-ux"));
const core_1 = require("@oclif/core");
const core_2 = require("@swsdk/core");
const core_3 = require("@oclif/core");
// noinspection JSUnusedGlobalSymbols
class Show extends core_1.Base {
class Show extends core_2.Base {
async run() {
const { flags } = this.parse(Show);
const { flags } = await this.parse(Show);
const { debug } = flags;

@@ -19,3 +18,3 @@ if (this.sdkConfig) {

const configValue = sdkConfig[key];
cli_ux_1.default.log(`${key}: ${configValue}`);
core_3.CliUx.ux.log(`${key}: ${configValue}`);
}

@@ -31,3 +30,3 @@ }

Show.description = 'Used display current config settings';
Show.flags = Object.assign(Object.assign({}, core_1.Base.flags), { debug: command_1.flags.boolean({ hidden: true }), help: command_1.flags.help({ char: 'h' }) });
Show.flags = Object.assign(Object.assign({}, core_2.Base.flags), { debug: core_1.Flags.boolean({ hidden: true }), help: core_1.Flags.help({ char: 'h' }) });
//# sourceMappingURL=show.js.map

@@ -5,7 +5,7 @@ import { Base } from '@swsdk/core';

static flags: {
global: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
'skip-hook': import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
help: import("@oclif/parser/lib/flags").IBooleanFlag<void>;
global: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
'skip-hook': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
help: import("@oclif/core/lib/interfaces").BooleanFlag<void>;
};
run(): Promise<void>;
}

@@ -5,3 +5,2 @@ "use strict";

const tslib_1 = require("tslib");
const command_1 = require("@oclif/command");
const core_1 = require("@swsdk/core");

@@ -11,3 +10,3 @@ const execa_1 = (0, tslib_1.__importDefault)(require("execa"));

const fs_extra_1 = require("fs-extra");
const cli_ux_1 = require("cli-ux");
const core_2 = require("@oclif/core");
const node_fs_1 = require("node:fs");

@@ -19,3 +18,3 @@ const listr2_1 = require("listr2");

async run() {
const { flags } = this.parse(Create);
const { flags } = await this.parse(Create);
const { global, 'skip-hook': skipHook, } = flags;

@@ -85,6 +84,6 @@ const basePath = global ? this.config.home : process.cwd();

.catch(error => {
cli_ux_1.cli.error(error);
core_2.CliUx.ux.error(error);
});
if (skipHook) {
cli_ux_1.cli.log('You are all set! ' +
core_2.CliUx.ux.log('You are all set! ' +
'Now cd into any git repository and use git cz instead of git commit, and you will find the commitizen prompt.\n\n' +

@@ -94,3 +93,3 @@ 'You can use all the git commit options with git cz. For example: git cz -a');

else {
cli_ux_1.cli.log('You are all set! ' +
core_2.CliUx.ux.log('You are all set! ' +
'Now cd into any git repository and use git commit, and you will find the commitizen prompt.');

@@ -102,7 +101,7 @@ }

Create.description = 'Installs and sets up commitizen';
Create.flags = Object.assign(Object.assign({}, core_1.Base.flags), { global: command_1.flags.boolean({
Create.flags = Object.assign(Object.assign({}, core_1.Base.flags), { global: core_2.Flags.boolean({
description: 'used to configure the hook globally',
}), 'skip-hook': command_1.flags.boolean({
}), 'skip-hook': core_2.Flags.boolean({
description: 'skips setting up the prepare-commit hook. Must be run with cz or git cz',
}), help: command_1.flags.help({ char: 'h' }) });
}), help: core_2.Flags.help({ char: 'h' }) });
//# sourceMappingURL=create.js.map

@@ -1,1 +0,1 @@

{"version":"4.5.4","commands":{"config:set":{"id":"config:set","description":"Use to set config options","pluginName":"@swsdk/plugin-config","pluginType":"core","aliases":[],"flags":{"git-protocol":{"name":"git-protocol","type":"option","description":"the protocol to use for git clone and push operations","options":["https","ssh"]},"owner":{"name":"owner","type":"option","description":"the default GitHub Owner"},"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false}},"args":[]},"config:show":{"id":"config:show","description":"Used display current config settings","pluginName":"@swsdk/plugin-config","pluginType":"core","aliases":[],"flags":{"debug":{"name":"debug","type":"boolean","hidden":true,"allowNo":false},"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false}},"args":[]},"hooks:commit:create":{"id":"hooks:commit:create","description":"Installs and sets up commitizen","pluginName":"@swsdk/plugin-config","pluginType":"core","aliases":[],"flags":{"global":{"name":"global","type":"boolean","description":"used to configure the hook globally","allowNo":false},"skip-hook":{"name":"skip-hook","type":"boolean","description":"skips setting up the prepare-commit hook. Must be run with cz or git cz","allowNo":false},"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false}},"args":[]}}}
{"version":"4.5.5-next.6+078da87","commands":{"config:set":{"id":"config:set","description":"Use to set config options","strict":true,"pluginName":"@swsdk/plugin-config","pluginAlias":"@swsdk/plugin-config","pluginType":"core","aliases":[],"flags":{"git-protocol":{"name":"git-protocol","type":"option","description":"the protocol to use for git clone and push operations","multiple":false,"options":["https","ssh"]},"owner":{"name":"owner","type":"option","description":"the default GitHub Owner","multiple":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false}},"args":[],"_globalFlags":{}},"config:show":{"id":"config:show","description":"Used display current config settings","strict":true,"pluginName":"@swsdk/plugin-config","pluginAlias":"@swsdk/plugin-config","pluginType":"core","aliases":[],"flags":{"debug":{"name":"debug","type":"boolean","hidden":true,"allowNo":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false}},"args":[],"_globalFlags":{}},"hooks:commit:create":{"id":"hooks:commit:create","description":"Installs and sets up commitizen","strict":true,"pluginName":"@swsdk/plugin-config","pluginAlias":"@swsdk/plugin-config","pluginType":"core","aliases":[],"flags":{"global":{"name":"global","type":"boolean","description":"used to configure the hook globally","allowNo":false},"skip-hook":{"name":"skip-hook","type":"boolean","description":"skips setting up the prepare-commit hook. Must be run with cz or git cz","allowNo":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false}},"args":[],"_globalFlags":{}}}}
{
"name": "@swsdk/plugin-config",
"description": "Plugin for managing configuration.",
"version": "4.5.4",
"author": "Swimlane",

@@ -9,2 +6,15 @@ "bugs": {

},
"dependencies": {
"@oclif/core": "1.7.0",
"@swsdk/core": "^4.5.5-next.6+078da87",
"enquirer": "^2.3.6",
"execa": "5.1.1",
"fs-extra": "10.0.1",
"listr2": "4.0.5",
"npmlog": "6.0.1",
"semver": "7.3.6",
"simple-git": "3.5.0",
"tslib": "2.3.1"
},
"description": "Plugin for managing configuration.",
"engines": {

@@ -25,2 +35,3 @@ "node": ">=16.0.0"

"main": "lib/index.js",
"name": "@swsdk/plugin-config",
"oclif": {

@@ -38,2 +49,5 @@ "commands": "./lib/commands",

},
"publishConfig": {
"access": "public"
},
"repository": {

@@ -43,5 +57,2 @@ "type": "git",

},
"publishConfig": {
"access": "public"
},
"scripts": {

@@ -51,24 +62,11 @@ "lint": "eslint . --ext .ts --config .eslintrc",

"pretest": "tsc -p test --noEmit",
"prepack": "oclif-dev manifest",
"test": "echo NO TESTS",
"posttest": "yarn lint",
"version": "oclif-dev readme",
"link": "npm link"
"postpack": "shx rm -f oclif.manifest.json",
"prepack": "yarn build && oclif manifest && oclif readme",
"version": "oclif readme",
"link": "yarn link"
},
"dependencies": {
"@oclif/command": "^1.8.0",
"@oclif/config": "^1.17.0",
"@oclif/errors": "^1.3.5",
"@oclif/parser": "^3.8.5",
"@swsdk/core": "^4.5.4",
"cli-ux": "^5.6.3",
"execa": "^5.1.1",
"fs-extra": "^10.0.0",
"listr2": "^4.0.1",
"npmlog": "^5.0.1",
"semver": "^7.3.5",
"simple-git": "^2.47.0",
"tslib": "^2.3.1"
},
"gitHead": "68ff22acfafd8791d3190e77c2418af82e01eb10"
"version": "4.5.5-next.6+078da87",
"gitHead": "078da87973a3fe926b28ef25daf3a7149d95c22e"
}

@@ -18,4 +18,4 @@ Config CLI Plugin

running command...
$ swsdk-config (-v|--version|version)
@swsdk/plugin-config/4.5.4 darwin-x64 node-v16.11.0
$ swsdk-config (--version)
@swsdk/plugin-config/4.5.5-next.6+078da87 darwin-x64 node-v16.14.2
$ swsdk-config --help [COMMAND]

@@ -39,11 +39,15 @@ USAGE

USAGE
$ swsdk-config config:set
$ swsdk-config config:set [--git-protocol https|ssh] [--owner <value>] [-h]
OPTIONS
-h, --help show CLI help
--git-protocol=https|ssh the protocol to use for git clone and push operations
--owner=owner the default GitHub Owner
FLAGS
-h, --help Show CLI help.
--git-protocol=<option> the protocol to use for git clone and push operations
<options: https|ssh>
--owner=<value> the default GitHub Owner
DESCRIPTION
Use to set config options
```
_See code: [lib/commands/config/set.js](https://github.com/swimlane/swimlane-sdk-cli/blob/v4.5.4/lib/commands/config/set.js)_
_See code: [lib/commands/config/set.js](https://github.com/swimlane/swimlane-sdk-cli/blob/v4.5.5-next.6+078da87/lib/commands/config/set.js)_

@@ -56,9 +60,12 @@ ## `swsdk-config config:show`

USAGE
$ swsdk-config config:show
$ swsdk-config config:show [-h]
OPTIONS
-h, --help show CLI help
FLAGS
-h, --help Show CLI help.
DESCRIPTION
Used display current config settings
```
_See code: [lib/commands/config/show.js](https://github.com/swimlane/swimlane-sdk-cli/blob/v4.5.4/lib/commands/config/show.js)_
_See code: [lib/commands/config/show.js](https://github.com/swimlane/swimlane-sdk-cli/blob/v4.5.5-next.6+078da87/lib/commands/config/show.js)_

@@ -71,11 +78,14 @@ ## `swsdk-config hooks:commit:create`

USAGE
$ swsdk-config hooks:commit:create
$ swsdk-config hooks:commit:create [--global] [--skip-hook] [-h]
OPTIONS
-h, --help show CLI help
FLAGS
-h, --help Show CLI help.
--global used to configure the hook globally
--skip-hook skips setting up the prepare-commit hook. Must be run with cz or git cz
DESCRIPTION
Installs and sets up commitizen
```
_See code: [lib/commands/hooks/commit/create.js](https://github.com/swimlane/swimlane-sdk-cli/blob/v4.5.4/lib/commands/hooks/commit/create.js)_
_See code: [lib/commands/hooks/commit/create.js](https://github.com/swimlane/swimlane-sdk-cli/blob/v4.5.5-next.6+078da87/lib/commands/hooks/commit/create.js)_
<!-- commandsstop -->

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet