@wocker/core
Advanced tools
Comparing version 1.0.12 to 1.0.13
@@ -7,3 +7,3 @@ "use strict"; | ||
const Command = (command) => { | ||
return (target, key, descriptor) => { | ||
return (_target, _key, descriptor) => { | ||
Reflect.defineMetadata(env_1.COMMAND_METADATA, command, descriptor.value); | ||
@@ -10,0 +10,0 @@ }; |
@@ -5,6 +5,7 @@ "use strict"; | ||
require("reflect-metadata"); | ||
const env_1 = require("../env"); | ||
const Completion = (name, command) => { | ||
return (target, propertyKey, descriptor) => { | ||
Reflect.defineMetadata("completion", [ | ||
...Reflect.getMetadata("completion", descriptor.value) || [], | ||
return (_target, _propertyKey, descriptor) => { | ||
Reflect.defineMetadata(env_1.COMPLETION_METADATA, [ | ||
...Reflect.getMetadata(env_1.COMPLETION_METADATA, descriptor.value) || [], | ||
{ | ||
@@ -11,0 +12,0 @@ name, |
@@ -0,1 +1,2 @@ | ||
import { PickProperties } from "../types"; | ||
type TextOption = { | ||
@@ -23,2 +24,3 @@ type: "string" | "number" | "int"; | ||
type AnyOption = TextOption | ConfirmOption | SelectOption; | ||
export type PresetProperties = PickProperties<Preset>; | ||
export declare abstract class Preset { | ||
@@ -35,7 +37,8 @@ id: string; | ||
}; | ||
path: string; | ||
volumes?: string[]; | ||
volumeOptions?: string[]; | ||
protected constructor(data: any); | ||
protected constructor(data: PresetProperties); | ||
abstract save(): Promise<void>; | ||
} | ||
export {}; |
@@ -8,2 +8,3 @@ "use strict"; | ||
this.name = data.name; | ||
this.path = data.path; | ||
this.version = data.version; | ||
@@ -10,0 +11,0 @@ this.dockerfile = data.dockerfile; |
export * from "./AppConfig"; | ||
export * from "./EnvConfig"; | ||
export * from "./PickProperties"; | ||
export * from "./Volume"; |
@@ -20,1 +20,2 @@ "use strict"; | ||
__exportStar(require("./PickProperties"), exports); | ||
__exportStar(require("./Volume"), exports); |
@@ -1,6 +0,2 @@ | ||
export type Volume = { | ||
source: string; | ||
destination: string; | ||
options?: string; | ||
}; | ||
import { Volume } from "../types"; | ||
export declare const volumeFormat: (volume: Volume) => string; |
@@ -1,2 +0,2 @@ | ||
import { Volume } from "./volumeFormat"; | ||
import { Volume } from "../types"; | ||
export declare const volumeParse: (volume: string) => Volume; |
{ | ||
"name": "@wocker/core", | ||
"version": "1.0.12", | ||
"version": "1.0.13", | ||
"author": "Kris Papercut <krispcut@gmail.com>", | ||
@@ -24,4 +24,4 @@ "description": "Core of wocker", | ||
"watch": "tsc -w --project tsconfig.build.json", | ||
"watch:test": "jest --colors --watchAll --coverage", | ||
"test": "jest --colors" | ||
"test": "jest --colors", | ||
"test-watch": "jest --colors --watchAll --coverage" | ||
}, | ||
@@ -28,0 +28,0 @@ "dependencies": { |
89701
97
2232