mirror of
https://github.com/Noratrieb/service-manager.git
synced 2026-01-17 01:45:05 +01:00
toml config
This commit is contained in:
parent
503bae869b
commit
55c99f5b5f
4 changed files with 30 additions and 4 deletions
19
Cargo.lock
generated
19
Cargo.lock
generated
|
|
@ -2,6 +2,25 @@
|
|||
# It is not intended for manual editing.
|
||||
version = 3
|
||||
|
||||
[[package]]
|
||||
name = "serde"
|
||||
version = "1.0.132"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "8b9875c23cf305cd1fd7eb77234cbb705f21ea6a72c637a5c6db5fe4b8e7f008"
|
||||
|
||||
[[package]]
|
||||
name = "service-manager"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"serde",
|
||||
"toml",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "toml"
|
||||
version = "0.5.8"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "a31142970826733df8241ef35dc040ef98c679ab14d7c3e54d827099b3acecaa"
|
||||
dependencies = [
|
||||
"serde",
|
||||
]
|
||||
|
|
|
|||
|
|
@ -6,3 +6,5 @@ edition = "2021"
|
|||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
serde = "1.0.132"
|
||||
toml = "0.5.8"
|
||||
|
|
|
|||
9
config.toml
Normal file
9
config.toml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
[hello]
|
||||
command = "echo hello"
|
||||
|
||||
[sleep]
|
||||
command = "sleep 48590234"
|
||||
|
||||
[environment]
|
||||
command = "echo $HELLO && sleep 37852375"
|
||||
env = { HELLO = "uwu hi ヾ(•ω•`)o" }
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
- start: echo "Hello World!"
|
||||
- start: echo $HELLO
|
||||
env:
|
||||
HELLO: hi world
|
||||
Loading…
Add table
Add a link
Reference in a new issue