Skip to content
This repository was archived by the owner on Oct 2, 2022. It is now read-only.

Commit 7222d3b

Browse files
author
Janos Pasztor
authored
Changelog (#3)
1 parent 20f37e6 commit 7222d3b

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
# Changelog
22

3+
## 0.9.0 Initial Release
4+
5+
This is the initial port from ContainerSSH 0.3. It is able to load ContainerSSH 0.3 configuration files, but deprecates the `listen` option in the root configuration and instead moves it to `ssh``listen`.

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,11 @@ This library also provides simplified methods for reading the configuration from
178178
```go
179179
file, err := os.Open("file.yaml")
180180
// ...
181-
loader, err := configuration.NewReaderLoader(file)
181+
loader, err := configuration.NewReaderLoader(
182+
file,
183+
logger,
184+
configuration.FormatYAML,
185+
)
182186
// Read global config
183187
appConfig := &configuration.AppConfig{}
184188
err := loader.Load(ctx, appConfig)
@@ -206,6 +210,10 @@ This HTTP loader calls the HTTP client described above.
206210
Conversely, you can write the configuration to a YAML format:
207211

208212
```go
209-
saver, err := configuration.NewWriterSaver(os.Stdout)
213+
saver, err := configuration.NewWriterSaver(
214+
os.Stdout,
215+
logger,
216+
configuration.FormatYAML,
217+
)
210218
err := saver.Save(appConfig)
211219
```

0 commit comments

Comments
 (0)