feat: migration name generator

This commit is contained in:
2025-02-03 02:50:01 +00:00
parent f2307ff492
commit a481d10194
2 changed files with 5 additions and 0 deletions

View File

@@ -58,6 +58,7 @@
colorize = pkgs.callPackage ./package/colorize.nix {}; colorize = pkgs.callPackage ./package/colorize.nix {};
github.gh-tl = pkgs.callPackage ./package/github/gh-tl.nix {}; github.gh-tl = pkgs.callPackage ./package/github/gh-tl.nix {};
supabase-with-env-collection = pkgs.callPackage ./package/supabase-with-env-collection.nix {}; supabase-with-env-collection = pkgs.callPackage ./package/supabase-with-env-collection.nix {};
migration-name = pkgs.callPackage ./package/migration-name.nix {};
prettify-log = pkgs.callPackage ./package/prettify-log/default.nix { prettify-log = pkgs.callPackage ./package/prettify-log/default.nix {
inherit (self.lib) cargoToml; inherit (self.lib) cargoToml;
nativeBuildInputs = [ nativeBuildInputs = [

View File

@@ -0,0 +1,4 @@
{ pkgs, ... }:
pkgs.writeShellScriptBin "migration-name" ''
curl --silent https://raw.githubusercontent.com/dwyl/english-words/master/words.txt | shuf -n2 | tr '\n' '_' | sed 's/_$//'
''