@wocker/ws 1.0.27 → 1.0.28

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.
@@ -29,6 +29,7 @@ let DnsController = class DnsController {
29
29
  exports.DnsController = DnsController;
30
30
  __decorate([
31
31
  (0, core_1.Command)("dns:start"),
32
+ (0, core_1.Description)("Starting DNS service"),
32
33
  __param(0, (0, core_1.Option)("restart", "r")),
33
34
  __param(1, (0, core_1.Option)("rebuild", "b")),
34
35
  __metadata("design:type", Function),
@@ -37,11 +38,13 @@ __decorate([
37
38
  ], DnsController.prototype, "start", null);
38
39
  __decorate([
39
40
  (0, core_1.Command)("dns:stop"),
41
+ (0, core_1.Description)("Stopping DNS service"),
40
42
  __metadata("design:type", Function),
41
43
  __metadata("design:paramtypes", []),
42
44
  __metadata("design:returntype", Promise)
43
45
  ], DnsController.prototype, "stop", null);
44
46
  exports.DnsController = DnsController = __decorate([
45
47
  (0, core_1.Controller)(),
48
+ (0, core_1.Description)("DNS commands"),
46
49
  __metadata("design:paramtypes", [DnsService_1.DnsService])
47
50
  ], DnsController);
@@ -1,4 +1,5 @@
1
- import { AppConfigService, AppFileSystemService, ProcessService, ProjectType, EventService, DockerService, LogService } from "@wocker/core";
1
+ import { AppConfigService, AppFileSystemService, ProcessService, ProjectType, EventService, LogService } from "@wocker/core";
2
+ import { DockerService } from "@wocker/docker-module";
2
3
  import { PresetService } from "../../preset";
3
4
  import { ProjectService } from "../services/ProjectService";
4
5
  export declare class ProjectController {
@@ -17,6 +17,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.ProjectController = void 0;
19
19
  const core_1 = require("@wocker/core");
20
+ const docker_module_1 = require("@wocker/docker-module");
20
21
  const utils_1 = require("@wocker/utils");
21
22
  const path_1 = __importDefault(require("path"));
22
23
  const cli_table3_1 = __importDefault(require("cli-table3"));
@@ -679,6 +680,7 @@ __decorate([
679
680
  ], ProjectController.prototype, "buildArgsList", null);
680
681
  __decorate([
681
682
  (0, core_1.Command)("build-args:get [...buildArgs]"),
683
+ (0, core_1.Description)("Get build args"),
682
684
  __param(0, (0, core_1.Param)("buildArgs")),
683
685
  __param(1, (0, core_1.Option)("name", "n")),
684
686
  __param(1, (0, core_1.Description)("The name of the project")),
@@ -760,6 +762,7 @@ __decorate([
760
762
  ], ProjectController.prototype, "clearDomain", null);
761
763
  __decorate([
762
764
  (0, core_1.Command)("ports"),
765
+ (0, core_1.Description)("List of ports"),
763
766
  __param(0, (0, core_1.Option)("name", "n")),
764
767
  __param(0, (0, core_1.Description)("The name of the project")),
765
768
  __param(1, (0, core_1.Option)("service", "s")),
@@ -769,6 +772,7 @@ __decorate([
769
772
  ], ProjectController.prototype, "ports", null);
770
773
  __decorate([
771
774
  (0, core_1.Command)("port:add <host-port>:<container-port>"),
775
+ (0, core_1.Description)("Add port"),
772
776
  __param(0, (0, core_1.Param)("host-port")),
773
777
  __param(1, (0, core_1.Param)("container-port")),
774
778
  __param(2, (0, core_1.Option)("name", {
@@ -782,6 +786,7 @@ __decorate([
782
786
  ], ProjectController.prototype, "addPort", null);
783
787
  __decorate([
784
788
  (0, core_1.Command)("port:remove <host-port>:<container-port>"),
789
+ (0, core_1.Description)("Remove port"),
785
790
  __param(0, (0, core_1.Param)("host-port")),
786
791
  __param(1, (0, core_1.Param)("container-port")),
787
792
  __param(2, (0, core_1.Option)("name", {
@@ -795,6 +800,7 @@ __decorate([
795
800
  ], ProjectController.prototype, "removePort", null);
796
801
  __decorate([
797
802
  (0, core_1.Command)("port:clear"),
803
+ (0, core_1.Description)("Clear ports"),
798
804
  __param(0, (0, core_1.Option)("name", "n")),
799
805
  __param(0, (0, core_1.Description)("The name of the project")),
800
806
  __metadata("design:type", Function),
@@ -803,6 +809,7 @@ __decorate([
803
809
  ], ProjectController.prototype, "clearPorts", null);
804
810
  __decorate([
805
811
  (0, core_1.Command)("config"),
812
+ (0, core_1.Description)("List of environment variables"),
806
813
  __param(0, (0, core_1.Option)("name", "n")),
807
814
  __param(0, (0, core_1.Description)("The name of the project")),
808
815
  __param(1, (0, core_1.Option)("global", "g")),
@@ -814,6 +821,7 @@ __decorate([
814
821
  ], ProjectController.prototype, "configList", null);
815
822
  __decorate([
816
823
  (0, core_1.Command)("config:get [...key]"),
824
+ (0, core_1.Description)("Get environment variable"),
817
825
  __param(0, (0, core_1.Param)("key")),
818
826
  __param(1, (0, core_1.Option)("name", "n")),
819
827
  __param(1, (0, core_1.Description)("The name of the project")),
@@ -837,6 +845,7 @@ __decorate([
837
845
  ], ProjectController.prototype, "configSet", null);
838
846
  __decorate([
839
847
  (0, core_1.Command)("config:unset [...configs]"),
848
+ (0, core_1.Description)("Unset environment variable"),
840
849
  __param(0, (0, core_1.Param)("configs")),
841
850
  __param(1, (0, core_1.Option)("global", "g")),
842
851
  __param(2, (0, core_1.Option)("name", "n")),
@@ -849,6 +858,7 @@ __decorate([
849
858
  ], ProjectController.prototype, "configUnset", null);
850
859
  __decorate([
851
860
  (0, core_1.Command)("volumes"),
861
+ (0, core_1.Description)("List of volumes"),
852
862
  __param(0, (0, core_1.Option)("name", "n")),
853
863
  __param(0, (0, core_1.Description)("The name of the project")),
854
864
  __metadata("design:type", Function),
@@ -857,6 +867,7 @@ __decorate([
857
867
  ], ProjectController.prototype, "volumeList", null);
858
868
  __decorate([
859
869
  (0, core_1.Command)("volume:mount [...volumes]"),
870
+ (0, core_1.Description)("Mount volume"),
860
871
  __param(0, (0, core_1.Param)("volumes")),
861
872
  __param(1, (0, core_1.Option)("name", "n")),
862
873
  __param(1, (0, core_1.Description)("The name of the project")),
@@ -866,6 +877,7 @@ __decorate([
866
877
  ], ProjectController.prototype, "volumeMount", null);
867
878
  __decorate([
868
879
  (0, core_1.Command)("volume:unmount [...volumes]"),
880
+ (0, core_1.Description)("Unmount volume"),
869
881
  __param(0, (0, core_1.Param)("volumes")),
870
882
  __param(1, (0, core_1.Option)("name", "n")),
871
883
  __param(1, (0, core_1.Description)("The name of the project")),
@@ -923,6 +935,7 @@ __decorate([
923
935
  ], ProjectController.prototype, "attach", null);
924
936
  __decorate([
925
937
  (0, core_1.Command)("run <script> [...args]"),
938
+ (0, core_1.Description)("Run script"),
926
939
  __param(0, (0, core_1.Param)("script")),
927
940
  __param(1, (0, core_1.Param)("args")),
928
941
  __param(2, (0, core_1.Option)("name", "n")),
@@ -935,6 +948,7 @@ __decorate([
935
948
  ], ProjectController.prototype, "run", null);
936
949
  __decorate([
937
950
  (0, core_1.Command)("exec [...command]"),
951
+ (0, core_1.Description)("Execute command"),
938
952
  __param(0, (0, core_1.Param)("command")),
939
953
  __param(1, (0, core_1.Option)("name", "n")),
940
954
  __param(1, (0, core_1.Description)("The name of the project")),
@@ -968,6 +982,6 @@ exports.ProjectController = ProjectController = __decorate([
968
982
  ProjectService_1.ProjectService,
969
983
  preset_1.PresetService,
970
984
  core_1.EventService,
971
- core_1.DockerService,
985
+ docker_module_1.DockerService,
972
986
  core_1.LogService])
973
987
  ], ProjectController);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wocker/ws",
3
3
  "type": "commonjs",
4
- "version": "1.0.27",
4
+ "version": "1.0.28",
5
5
  "author": "Kris Papercut <krispcut@gmail.com>",
6
6
  "description": "Docker workspace for web projects",
7
7
  "license": "MIT",
@@ -35,7 +35,7 @@
35
35
  "make-coverage-badge": "make-coverage-badge"
36
36
  },
37
37
  "dependencies": {
38
- "@wocker/core": "1.0.27",
38
+ "@wocker/core": "1.0.28",
39
39
  "@wocker/docker-module": "^0.0.1",
40
40
  "@wocker/utils": "^2.0.6",
41
41
  "async-mutex": "^0.4.0",