From 32b5b7dc93b1529a6925cd174b48d3c4c4aa878c Mon Sep 17 00:00:00 2001 From: Johannes Kirschbauer Date: Wed, 11 Jun 2025 20:05:59 +0200 Subject: [PATCH] feat(flake): add function to get input names --- pkgs/clan-cli/clan_lib/flake/flake.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/clan-cli/clan_lib/flake/flake.py b/pkgs/clan-cli/clan_lib/flake/flake.py index 85ae81e65..8be0ff0a0 100644 --- a/pkgs/clan-cli/clan_lib/flake/flake.py +++ b/pkgs/clan-cli/clan_lib/flake/flake.py @@ -598,6 +598,9 @@ class Flake: assert isinstance(self._is_local, bool) return self._is_local + def get_input_names(self) -> list[str]: + return self.select("inputs", apply="builtins.attrNames") + @property def path(self) -> Path: if self._path is None: