@knocklabs/cli 0.3.0 → 0.3.1
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/README.md +300 -160
- package/dist/commands/branch/create.js +0 -2
- package/dist/commands/branch/delete.js +0 -2
- package/dist/commands/branch/exit.js +0 -2
- package/dist/commands/branch/list.js +0 -2
- package/dist/commands/branch/switch.js +0 -2
- package/dist/lib/helpers/flag.js +0 -2
- package/oclif.manifest.json +376 -420
- package/package.json +7 -4
|
@@ -44,8 +44,6 @@ class BranchCreate extends _basecommand.default {
|
|
|
44
44
|
this.log(` Created at: ${data.created_at}`);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
// Hide until branches are released in GA
|
|
48
|
-
_define_property(BranchCreate, "hidden", true);
|
|
49
47
|
_define_property(BranchCreate, "summary", "Creates a new branch off of the development environment.");
|
|
50
48
|
_define_property(BranchCreate, "enableJsonFlag", true);
|
|
51
49
|
_define_property(BranchCreate, "args", {
|
|
@@ -44,8 +44,6 @@ class BranchDelete extends _basecommand.default {
|
|
|
44
44
|
this.log(`‣ Successfully deleted branch \`${args.slug}\``);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
// Hide until branches are released in GA
|
|
48
|
-
_define_property(BranchDelete, "hidden", true);
|
|
49
47
|
_define_property(BranchDelete, "summary", "Deletes an existing branch with the given slug.");
|
|
50
48
|
_define_property(BranchDelete, "args", {
|
|
51
49
|
slug: _arg.CustomArgs.slug({
|
|
@@ -39,6 +39,4 @@ class BranchExit extends _basecommand.default {
|
|
|
39
39
|
this.log("‣ Successfully exited the branch");
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
// Hide until branches are released in GA
|
|
43
|
-
_define_property(BranchExit, "hidden", true);
|
|
44
42
|
_define_property(BranchExit, "summary", "Exits the current branch.");
|
|
@@ -80,8 +80,6 @@ class BranchList extends _basecommand.default {
|
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
// Hide until branches are released in GA
|
|
84
|
-
_define_property(BranchList, "hidden", true);
|
|
85
83
|
_define_property(BranchList, "summary", "Display all existing branches off of the development environment.");
|
|
86
84
|
_define_property(BranchList, "flags", {
|
|
87
85
|
..._page.pageFlags
|
|
@@ -142,8 +142,6 @@ class BranchSwitch extends _basecommand.default {
|
|
|
142
142
|
});
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
|
-
// Hide until branches are released in GA
|
|
146
|
-
_define_property(BranchSwitch, "hidden", true);
|
|
147
145
|
_define_property(BranchSwitch, "summary", "Switches to an existing branch with the given slug.");
|
|
148
146
|
_define_property(BranchSwitch, "flags", {
|
|
149
147
|
create: _core.Flags.boolean({
|
package/dist/lib/helpers/flag.js
CHANGED
|
@@ -148,8 +148,6 @@ const slug = _core.Flags.custom({
|
|
|
148
148
|
});
|
|
149
149
|
const branch = slug({
|
|
150
150
|
summary: "The slug of the branch to use.",
|
|
151
|
-
// TODO Hide until branching is released in GA
|
|
152
|
-
hidden: true,
|
|
153
151
|
// Memoize this flag's default. oclif runs this default function even when the flag is unused.
|
|
154
152
|
// Using lodash's once avoids unnecessarily reading the branch file multiple times.
|
|
155
153
|
default: (0, _lodash.once)(_branch.readSlugFromBranchFile)
|