Ops.job: def of near-v-framework@0.4.0.0 Import: import near-v-framework@0.4.0.0/domain/architecture/system/deployment/nix_darwin/service/ops.bend as Ops Lines 93-104 of near-v-framework@0.4.0.0/domain/architecture/system/deployment/nix_darwin/service/ops.bend: https://jend.leeeet.dev/read.txt?path=near-v-framework@0.4.0.0/domain/architecture/system/deployment/nix_darwin/service/ops.bend&start_line=93&end_line=104 import Base import near-v-framework@0.4.0.0/domain/architecture/system/deployment/nix_darwin/service/type.bend as Sv def job(s: Sv.Service, +user: String, +logs: String) -> String: match s: case Sv.Service{_, +l, p, args, dir, e, +log, +st, _}: " " ++ job_kind(st) ++ ".\"" ++ l ++ "\".serviceConfig = {\n" ++ " Label = \"" ++ l ++ "\";" ++ user_name(st, user) ++ "\n" ++ " ProgramArguments = [ " ++ program(p) ++ quoted(args) ++ " ];\n" ++ " WorkingDirectory = \"" ++ dir ++ "\";\n" ++ " EnvironmentVariables = {" ++ envs(e) ++ " };\n" ++ " RunAtLoad = true; KeepAlive = true; ThrottleInterval = 10;\n" ++ " StandardOutPath = \"" ++ logs ++ "/" ++ log ++ ".log\";\n" ++ " StandardErrorPath = \"" ++ logs ++ "/" ++ log ++ ".log\";\n" ++ " };\n" Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.append https://jend.leeeet.dev/definition.txt?path=near-v-framework@0.4.0.0/domain/architecture/system/deployment/nix_darwin/service/ops.bend&name=envs https://jend.leeeet.dev/definition.txt?path=near-v-framework@0.4.0.0/domain/architecture/system/deployment/nix_darwin/service/ops.bend&name=job_kind https://jend.leeeet.dev/definition.txt?path=near-v-framework@0.4.0.0/domain/architecture/system/deployment/nix_darwin/service/ops.bend&name=program https://jend.leeeet.dev/definition.txt?path=near-v-framework@0.4.0.0/domain/architecture/system/deployment/nix_darwin/service/ops.bend&name=quoted https://jend.leeeet.dev/definition.txt?path=near-v-framework@0.4.0.0/domain/architecture/system/deployment/nix_darwin/service/ops.bend&name=user_name https://jend.leeeet.dev/definition.txt?path=near-v-framework@0.4.0.0/domain/architecture/system/deployment/nix_darwin/service/type.bend&name=Service