forked from vieter-v/vieter
We must please make vet
parent
a29592ef36
commit
eb57febdd3
|
@ -28,7 +28,6 @@ pipeline:
|
||||||
checksum:
|
checksum:
|
||||||
- md5
|
- md5
|
||||||
- sha256
|
- sha256
|
||||||
prerelease: true
|
|
||||||
title: ${CI_COMMIT_TAG}
|
title: ${CI_COMMIT_TAG}
|
||||||
when:
|
when:
|
||||||
event: tag
|
event: tag
|
||||||
|
|
|
@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
|
|
||||||
## [Unreleased](https://git.rustybever.be/Chewing_Bever/vieter)
|
## [Unreleased](https://git.rustybever.be/Chewing_Bever/vieter)
|
||||||
|
|
||||||
|
* Improved logging
|
||||||
|
|
||||||
## [0.1.0-rc.1](https://git.rustybever.be/Chewing_Bever/vieter/src/tag/0.1.0-rc.1)
|
## [0.1.0-rc.1](https://git.rustybever.be/Chewing_Bever/vieter/src/tag/0.1.0-rc.1)
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
|
@ -178,6 +178,8 @@ fn format_entry(key string, value string) string {
|
||||||
return '\n%$key%\n$value\n'
|
return '\n%$key%\n$value\n'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// full_name returns the properly formatted name for the package, including
|
||||||
|
// version & architecture
|
||||||
pub fn (pkg &Pkg) full_name() string {
|
pub fn (pkg &Pkg) full_name() string {
|
||||||
p := pkg.info
|
p := pkg.info
|
||||||
return '$p.name-$p.version-$p.arch'
|
return '$p.name-$p.version-$p.arch'
|
||||||
|
|
|
@ -25,6 +25,8 @@ fn is_pkg_name(s string) bool {
|
||||||
return s.contains('.pkg')
|
return s.contains('.pkg')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// healthcheck just returns a string, but can be used to quickly check if the
|
||||||
|
// server is still responsive.
|
||||||
['/health'; get]
|
['/health'; get]
|
||||||
pub fn (mut app App) healthcheck() web.Result {
|
pub fn (mut app App) healthcheck() web.Result {
|
||||||
return app.text('Healthy')
|
return app.text('Healthy')
|
||||||
|
|
Loading…
Reference in New Issue