feat(sterni/mblog): implement environment based config mechanism
Change-Id: I091c0d5decc0a1eb3d24e81b713434ab391c677d Reviewed-on: https://cl.tvl.fyi/c/depot/+/8347 Reviewed-by: sterni <sternenseemann@systemli.org> Autosubmit: sterni <sternenseemann@systemli.org> Tested-by: BuildkiteCI
This commit is contained in:
parent
fee0c83915
commit
80e168b22d
6 changed files with 54 additions and 14 deletions
|
|
@ -1,5 +1,5 @@
|
|||
;; SPDX-License-Identifier: GPL-3.0-only
|
||||
;; SPDX-FileCopyrightText: Copyright (C) 2022 by sterni
|
||||
;; SPDX-FileCopyrightText: Copyright (C) 2022-2023 by sterni
|
||||
|
||||
(in-package :cli)
|
||||
(declaim (optimize (safety 3)))
|
||||
|
|
@ -49,6 +49,7 @@
|
|||
|
||||
(defun main ()
|
||||
"Dispatch to correct main function based on arguments and UIOP:ARGV0."
|
||||
(config:init-from-env)
|
||||
(multiple-value-bind (flags args)
|
||||
(partition-by (lambda (x) (starts-with #\- x))
|
||||
(uiop:command-line-arguments))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue