Skip to content

Commit 8c26979

Browse files
committed
Finish v0.2.2
2 parents e7db298 + 64e0464 commit 8c26979

File tree

5 files changed

+17
-16
lines changed

5 files changed

+17
-16
lines changed

api_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ func TestApiConfig(t *testing.T) {
9090
"/DisableStartupDialogs",
9191
"/LoadCfg ./1cv8.cf",
9292
"/UpdateDBCfg",
93-
"-Dynamic+",
93+
//"-Dynamic+", FIX: поправить после исправления https://github.com/v8platform/marshaler/issues/1
9494
"-Server",
9595
},
9696
},
@@ -156,7 +156,7 @@ func TestApiConfig(t *testing.T) {
156156
"/DisableStartupDialogs",
157157
"/LoadConfigFromFiles ./src",
158158
"/UpdateDBCfg",
159-
"-Dynamic+",
159+
//"-Dynamic+", FIX: поправить после исправления https://github.com/v8platform/marshaler/issues/1
160160
"-Server",
161161
},
162162
},
@@ -197,7 +197,7 @@ func TestApiConfig(t *testing.T) {
197197
"/UpdateCfg ./1cv8.cf",
198198
"-Force",
199199
"/UpdateDBCfg",
200-
"-Dynamic+",
200+
//"-Dynamic+", FIX: поправить после исправления https://github.com/v8platform/marshaler/issues/1
201201
"-Server",
202202
},
203203
},
@@ -235,13 +235,13 @@ func TestApiConfig(t *testing.T) {
235235
"/IBConnectionString File='./test_ib';",
236236
"/DisableStartupDialogs",
237237
"/DumpConfigToFiles ./src",
238-
"-Force",
238+
"-force",
239239
},
240240
},
241241
{
242242
"DumpConfigToFiles_update",
243243
ib,
244-
DumpConfigToFiles("./src", false).WithUpdate(false, ""),
244+
DumpConfigToFiles("./src", false).WithUpdate(""),
245245
nil,
246246
[]string{
247247
"DESIGNER",
@@ -254,7 +254,7 @@ func TestApiConfig(t *testing.T) {
254254
{
255255
"DumpConfigToFiles_configDumpInfo",
256256
ib,
257-
DumpConfigToFiles("./src", false).WithUpdate(false, "./dumpInfo.xml"),
257+
DumpConfigToFiles("./src", false).WithUpdate("./dumpInfo.xml"),
258258
nil,
259259
[]string{
260260
"DESIGNER",

example_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ func ExampleDumpConfigToFiles_with_update() {
416416
//infobase := v8.NewFileIB("./infobase")
417417
//infobase := v8.NewServerIB("app", "demobase")
418418

419-
what := v8.DumpConfigToFiles("./src").WithUpdate(false, "./src/dumpInfo.xml")
419+
what := v8.DumpConfigToFiles("./src").WithUpdate("./src/dumpInfo.xml")
420420
//what := v8.DumpConfigToFiles("./src", true)
421421

422422
err = v8.Run(infobase, what)

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.15
44

55
require (
66
github.com/stretchr/testify v1.6.1
7-
github.com/v8platform/designer v0.1.1
7+
github.com/v8platform/designer v0.2.0
88
github.com/v8platform/enterprise v0.1.0
99
github.com/v8platform/errors v0.1.0
1010
github.com/v8platform/marshaler v0.1.1

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ github.com/v8platform/agent v0.0.0-20200703051804-b06e6737a7b5 h1:exdR2JPaLRuRva
2525
github.com/v8platform/agent v0.0.0-20200703051804-b06e6737a7b5/go.mod h1:fLdJkSja8K++qa7+Lw4RQBHsEdS18GcE2F2BlFK33Z4=
2626
github.com/v8platform/designer v0.1.1 h1:YnC2+GVP7t/9QfAsRD2+dm3BaQVKi2PCGO56acvgcSk=
2727
github.com/v8platform/designer v0.1.1/go.mod h1:LdRGRiHK3+eIIMJcI1eEF90VSzYqU2cMhXOWeJu2bHE=
28+
github.com/v8platform/designer v0.2.0 h1:ldcp4MdpIcBxzZw+VH0fterpC5yMCk+OZxAYaBUjDzc=
29+
github.com/v8platform/designer v0.2.0/go.mod h1:pPkrPaXbTXLQHBfUu9+ikp4W6XRTN3iIF2/MNDTj4Sc=
2830
github.com/v8platform/enterprise v0.1.0 h1:OKJ3ig9AvUDvIN+R0GRWJUPVNy5rPNtOKoqS2JPLnvw=
2931
github.com/v8platform/enterprise v0.1.0/go.mod h1:A2XY7UYAi/o9xdKrHzU63XnVD8wvIe6jMBUlUrNANQs=
3032
github.com/v8platform/errors v0.1.0 h1:7167okMmxBb76FA3+irT4LW9KTVura0vhMWnFDMHcZw=

repository.go

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@ package v8
22

33
import (
44
"github.com/v8platform/designer"
5-
"github.com/v8platform/designer/repository"
65
)
76

8-
func NewRepository(path string, userAndPassword ...string) repository.Repository {
7+
func NewRepository(path string, userAndPassword ...string) designer.Repository {
98

10-
repo := repository.Repository{
9+
repo := designer.Repository{
1110
Path: path,
1211
}
1312

@@ -23,16 +22,16 @@ func NewRepository(path string, userAndPassword ...string) repository.Repository
2322

2423
// RepositoryUpdateCfg получает команду обновления конфигурации из хранилища конфигурации
2524
// Подробнее в пакете designer.UpdateCfgOptions
26-
func RepositoryUpdateCfg(repo repository.Repository, updateDBCfg ...designer.UpdateDBCfgOptions) repository.RepositoryUpdateCfgOptions {
25+
func RepositoryUpdateCfg(repo designer.Repository, updateDBCfg ...designer.UpdateDBCfgOptions) designer.RepositoryUpdateCfgOptions {
2726

28-
command := repository.RepositoryUpdateCfgOptions{
27+
command := designer.RepositoryUpdateCfgOptions{
2928
Repository: repo,
3029
Designer: designer.NewDesigner(),
3130
}
3231

33-
if len(updateDBCfg) > 0 {
34-
command.UpdateDBCfg = &updateDBCfg[0]
35-
}
32+
//if len(updateDBCfg) > 0 {
33+
// command.UpdateDBCfg = &updateDBCfg[0]
34+
//}
3635

3736
return command
3837
}

0 commit comments

Comments
 (0)