Skip to content

Commit

Permalink
azure-cli.generate-extensions: use extensions-tool
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
  • Loading branch information
katexochen committed Oct 31, 2024
1 parent 797fff9 commit 94bda99
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions pkgs/by-name/az/azure-cli/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -383,16 +383,7 @@ py.pkgs.toPythonApplication (
};

generate-extensions = writeScriptBin "${pname}-update-extensions" ''
export FILE=extensions-generated.nix
echo "# This file is automatically generated. DO NOT EDIT! Read README.md" > $FILE
echo "{ mkAzExtension }:" >> $FILE
echo "{" >> $FILE
${./query-extension-index.sh} --requirements=false --download --nix --cli-version=${version} \
| xargs -n1 -d '\n' echo " " >> $FILE
echo "" >> $FILE
echo "}" >> $FILE
echo "Extension was saved to \"extensions-generated.nix\" file."
echo "Move it to \"{nixpkgs}/pkgs/by-name/az/azure-cli/extensions-generated.nix\"."
${lib.getExe azure-cli.extensions-tool} --cli-version ${azure-cli.version} --commit
'';

extensions-tool =
Expand Down

0 comments on commit 94bda99

Please sign in to comment.