Fix executable name.
And print out missing params more neatly.
This commit is contained in:
parent
1e350b655f
commit
77f6bd1613
@ -29,6 +29,9 @@
|
|||||||
buildInputs = with helpers.packages."${system}";
|
buildInputs = with helpers.packages."${system}";
|
||||||
[ updateClojureDeps ];
|
[ updateClojureDeps ];
|
||||||
};
|
};
|
||||||
|
suanniServer = pkgs.mkShell {
|
||||||
|
buildInputs = with self.packages."${system}"; [ suanni-server ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}) // {
|
}) // {
|
||||||
nixosModules = rec {
|
nixosModules = rec {
|
||||||
|
@ -103,7 +103,7 @@ in {
|
|||||||
];
|
];
|
||||||
ExecStart = pkgs.writeShellScript "suanni-server.sh"
|
ExecStart = pkgs.writeShellScript "suanni-server.sh"
|
||||||
(concatStringsSep " " ([
|
(concatStringsSep " " ([
|
||||||
"suanni-server"
|
"suanni.server"
|
||||||
"--hostname=${cfg.event-listener.hostname}"
|
"--hostname=${cfg.event-listener.hostname}"
|
||||||
"--port=${toString cfg.event-listener.port}"
|
"--port=${toString cfg.event-listener.port}"
|
||||||
"--synology-host=${cfg.synology-client.host}"
|
"--synology-host=${cfg.synology-client.host}"
|
||||||
|
@ -50,7 +50,7 @@
|
|||||||
(defn- parse-opts [args required cli-opts]
|
(defn- parse-opts [args required cli-opts]
|
||||||
(let [{:keys [options]} :as result (cli/parse-opts args cli-opts)
|
(let [{:keys [options]} :as result (cli/parse-opts args cli-opts)
|
||||||
missing (set/difference required (-> options (keys) (set)))
|
missing (set/difference required (-> options (keys) (set)))
|
||||||
missing-errors (map #(format "missing required parameter: %s" %)
|
missing-errors (map #(format "missing required parameter: %s" (name %))
|
||||||
missing)]
|
missing)]
|
||||||
(update result :errors concat missing-errors)))
|
(update result :errors concat missing-errors)))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user