Skip to content

Commit

Permalink
version 0.1.25
Browse files Browse the repository at this point in the history
  • Loading branch information
SquatsTonight committed Sep 7, 2021
1 parent 325fa70 commit 8476fbd
Show file tree
Hide file tree
Showing 9 changed files with 4,216 additions and 3,224 deletions.
87 changes: 87 additions & 0 deletions dist/command/remote.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
import { IInputs } from '../lib/interface/interface';
export declare function setup(inputs: IInputs): Promise<any>;
export declare function invoke(inputs: IInputs): Promise<any>;
export declare function cleanup(inputs: IInputs): Promise<any>;
/**
* s remote <SubCommand> <options>\n
* @pre_help
* {"header":"Remote","content":"Remote invoke via proxied service."}
* @pre_help
* {"header": "Detail", "content": "Remote invoke with real net traffic via proxied service."}
* @pre_help
* {"header": "SubCommand List", "content": [{"name": "setup", "summary": "Setup the real remote service for debugging."},{"name": "invoke", "summary": "Invoke remote function."}, {"name": "cleanup", "summary": "Clean the related resource and environment."}]}
* @after_help
* {"ref":"GlobalParams"}
* @example
* {"header": "Example","content": [{"desc":"Help for setup.","example":"$ s remote setup -h"},{"desc":"Help for invoke.","example":"$ s remote invoke -h"},{"desc":"Help for cleanup.","example":"$ s remote cleanup -h"}]}
*/
export interface RemoteInputsArgs {
}
/**
* s remote setup <options>\n
* @pre_help
* {"header":"Setup","content":"Setup Operation."}
* @pre_help
* {"header": "Detail", "content": "Setup for remote invoke via proxied service."}
* @after_help
* {"ref":"GlobalParams"}
* @example
* {"header": "Example","content": [{"desc":"Setup with debug.","example":"$ s remote setup --config vscode --debug-port 3000"}]}
*/
export interface RemoteSetupInputsArgs {
/**
* Select which IDE to use when debugging and output related debug config tips for the IDE. Options:'vscode, intellij'.
* @alias c
*/
config: string;
/**
* Specify the sandboxed container starting in debug mode, and exposing this port on localhost.
* @alias d
*/
'debug-port': string;
/**
* The temp directory mounted to /tmp , default to './.s/tmp/invoke/serviceName/functionName/'
*/
'tmp-dir': string;
}
/**
* s remote invoke <options>\n
* @pre_help
* {"header":"Invoke","content":"Invoke remote function."}
* @pre_help
* {"header": "Detail", "content": "Invoke remote function in the remote service. Need setup first"}
* @after_help
* {"ref":"GlobalParams"}
* @example
* {"header": "Example","content": [{"desc":"Just invoke.","example":"$ s remote invoke"},{"desc":"Invoke with event.","example":"$ s remote invoke --event string"}]}
*/
export interface RemoteInvokeInputsArgs {
/**
* Event data (strings) passed to the function during invocation (default: "").Http function format refers to [https://github.com/devsapp/fc-remote-invoke#特别说明]
* @alias e
*/
event: string;
/**
* Event funtion: A file containing event data passed to the function during invoke. Http function: A file containing http request options sent to https strigger. Format refers to [https://github.com/devsapp/fc-remote-invoke#特别说明]
* @alias f
*/
'event-file': string;
/**
* Read from standard input, to support script pipeline.Http function format refers to [https://github.com/devsapp/fc-remote-invoke#特别说明]
* @alias s
*/
'event-stdin': string;
}
/**
* s remote cleanup <options>\n
* @pre_help
* {"header":"Cleanup","content":"Clean the related resource and environment."}
* @pre_help
* {"header": "Detail", "content": "Clean the helper resource and the tunnel container."}
* @after_help
* {"ref":"GlobalParams"}
* @example
* {"header": "Example","content": [{"desc":"Just cleanup.","example":"$ s remote cleanup"}]}
*/
export interface RemoteCleanupInputsArgs {
}
1 change: 1 addition & 0 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export default class FcBaseComponent extends BaseComponent {
layer(inputs: IInputs): Promise<any>;
proxied(inputs: IInputs): Promise<any>;
fun2s(inputs: IInputs): Promise<any>;
remote(inputs: IInputs): Promise<any>;
help(): Promise<void>;
private isHelp;
private handlerInputs;
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions dist/lib/component/fc-remote-debug.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { IInputs } from '../interface/interface';
export default class FcRemoteDebug {
private readonly userInputs;
constructor(inputs: IInputs);
makeInputs(methodName: string): IInputs;
}
12 changes: 12 additions & 0 deletions dist/lib/help/local.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ export declare const LOCAL_INVOKE_HELP_INFO: ({
description: string;
type: StringConstructor;
alias?: undefined;
} | {
name: string;
typeLabel: string;
description: string;
type: NumberConstructor;
alias?: undefined;
})[];
content?: undefined;
} | {
Expand Down Expand Up @@ -69,6 +75,12 @@ export declare const LOCAL_START_HELP_INFO: ({
description: string;
type: StringConstructor;
alias?: undefined;
} | {
name: string;
typeLabel: string;
description: string;
type: NumberConstructor;
alias?: undefined;
})[];
content?: undefined;
} | {
Expand Down
File renamed without changes.
Loading

0 comments on commit 8476fbd

Please sign in to comment.