From 25777db5e4b877a19896419c610fcf68fbc3c516 Mon Sep 17 00:00:00 2001 From: Spencer Brower Date: Tue, 28 Oct 2025 14:37:16 -0400 Subject: [PATCH] chore: Exported main functions. --- envr | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/envr b/envr index 7416a6e..2e1129d 100755 --- a/envr +++ b/envr @@ -1,12 +1,12 @@ #!/usr/bin/env nu # Manage your .env files with ease -def main [] { +export def main [] { help main } # Import a .env file into envr -def "main import" [ +export def "main import" [ file: path ] { cd (dirname $file); @@ -92,7 +92,7 @@ const available_formats = [ ] # Create your initial config -def "main config init" [ +export def "main config init" [ format?: string #identity?: path ] { @@ -117,7 +117,7 @@ def "main config init" [ } # View your tracked files -def "main list" [] { +export def "main list" [] { ( open db | query db 'select * from envr_env_files' @@ -127,12 +127,12 @@ def "main list" [] { } # Update your env backups -def "main sync" [] { +export def "main sync" [] { 'TODO:' } # Edit your config -def "main config edit" [] { +export def "main config edit" [] { 'TODO:' } @@ -141,6 +141,6 @@ def "config-file" []: [nothing -> path nothing -> nothing] { } # show your current config -def "main config show" []: nothing -> record { +export def "main config show" []: nothing -> record { open (config-file) }