Skip to content

Commit df4a574

Browse files
committed
Add public API
Add VScode launch
1 parent bb1b4fe commit df4a574

File tree

3 files changed

+45
-1
lines changed

3 files changed

+45
-1
lines changed

.vscode/launch.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "scalsun run",
6+
"type": "go",
7+
"request": "launch",
8+
"mode": "auto",
9+
"program": "${workspaceRoot}/cmd/scaling-instance.go",
10+
"args": [
11+
//"--verbose"
12+
],
13+
"env": {
14+
"PLATFORMSH_CLI_TOKEN": "",
15+
"UPSUN_CLI_TOKEN": "",
16+
"PLATFORM_PROJECT": "3lgb35gy6kcho",
17+
"PLATFORM_BRANCH": "master",
18+
19+
}
20+
},
21+
{
22+
"name": "scalsun help",
23+
"type": "go",
24+
"request": "launch",
25+
"mode": "auto",
26+
"program": "${workspaceRoot}/cmd/scaling-instance.go",
27+
"args": [
28+
"--help"
29+
],
30+
"env": {
31+
}
32+
},
33+
]
34+
}

api/api.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package api
2+
3+
import (
4+
"github.com/upsun/lib-sun/entity"
5+
"github.com/upsun/scalsun/internal/logic"
6+
)
7+
8+
func ScalingInstance(projectContext entity.ProjectGlobal) {
9+
logic.ScalingInstance(projectContext)
10+
}

version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
entity "github.com/upsun/lib-sun/entity"
55
)
66

7-
const VERSION = "0.3.0"
7+
const VERSION = "development"
88

99
var (
1010
Args entity.CliCommonArgs

0 commit comments

Comments
 (0)