Skip to content

Commit

Permalink
Merge pull request #19 from devsapp/dev
Browse files Browse the repository at this point in the history
build: 0.0.44
  • Loading branch information
wss-git authored Oct 18, 2021
2 parents f18e168 + d1164a9 commit bddb40c
Show file tree
Hide file tree
Showing 10 changed files with 724 additions and 723 deletions.
2 changes: 1 addition & 1 deletion doc/assets/js/search.js

Large diffs are not rendered by default.

319 changes: 200 additions & 119 deletions doc/classes/default.html

Large diffs are not rendered by default.

764 changes: 444 additions & 320 deletions doc/doc.json

Large diffs are not rendered by default.

267 changes: 62 additions & 205 deletions doc/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion doc/modules.html
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ <h3>input</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/devsapp/fc-api/blob/f69562d/src/index.ts#L19">index.ts:19</a></li>
<li>Defined in <a href="https://github.com/devsapp/fc-api/blob/f18e168/src/index.ts#L28">index.ts:28</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand Down
1 change: 0 additions & 1 deletion lib/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export default class FunctionCompute extends BaseComponent {
get(inputs: {}): Promise<any>;
private getClient;
private fetchData;
private index;
/**
* 查询服务列表
*/
Expand Down
56 changes: 14 additions & 42 deletions lib/index.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/interface.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export interface ApiCreateFunctionAndUpdateFunction {
initializationTimeout?: string;
initializer?: string;
memorySize?: number;
gpuMemorySize?: number;
runtime?: string;
timeout?: number;
caPort?: number;
Expand Down
2 changes: 1 addition & 1 deletion publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Type: Component
Name: fc-api
Provider:
- 阿里云
Version: 0.0.43
Version: 0.0.44
Description: 函数计算api操作组件
HomePage: https://github.com/devsapp/fc-api
Tags:
Expand Down
33 changes: 0 additions & 33 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,39 +241,6 @@ export default class FunctionCompute extends BaseComponent {
return yaml.dump(resultData)
}

private async index(inputs: ComponentInputs = {argsObj: undefined, credentials: undefined}) {
const newInputs = inputs
let addContent = ""
if (newInputs.project['access']) {
addContent = ` -a ${newInputs.project['access']}`
}
console.log(` _____ __ ____ ____ ____
| | / ] / || \\ | |
| __| / / | o || o ) | |
| |_ / / | || _/ | |
| _] / \\_ | _ || | | |
| | \\ | | | || | | |
|__| \\____| |__|__||__| |____|
`)
console.log("🎼 If you need help, you could input 'help'. ")
console.log("🎼 You can use FC API to operate directly.")
console.log("🎼 For example: [listServices]")
console.log("🎼 Quit: control + c/z")
while (true) {
const commandData = await input('> ')
if (commandData) {
spawnSync(`s cli fc-api ${commandData === "help" ? "-h" : commandData}${addContent}`, [], {
cwd: './',
stdio: 'inherit',
shell: true
});
} else {
console.log("")
}
}

}

/**
* 查询服务列表
*/
Expand Down

0 comments on commit bddb40c

Please sign in to comment.