docs: Added TODOs.

This commit is contained in:
2025-10-28 15:43:44 -04:00
parent 711f3c4a15
commit a139b79bcb

14
mod.nu
View File

@@ -1,8 +1,11 @@
#!/usr/bin/env nu #!/usr/bin/env nu
#
# TODO: Wrap blocks that use tmp files in try so we can clean them up.
use std assert; use std assert;
# Manage your .env files with ease # Manage your .env files with ease
@example "Set up envr" { envr init }
export def envr [] { export def envr [] {
help envr help envr
} }
@@ -146,14 +149,14 @@ const available_formats = [
export def "envr init" [ export def "envr init" [
format?: string format?: string
#identity?: path #identity?: path
] { ]: nothing -> record {
mkdir ~/.envr mkdir ~/.envr
if (ls ~/.envr/config.* | length | $in > 0) { if (glob ~/.envr/config.* | length | $in > 0) {
error make { error make {
msg: "A config file already exists" msg: "A config file already exists"
label: { label: {
text: "butts" text: ""
span: (metadata $format).span span: (metadata $format).span
} }
} }
@@ -197,6 +200,11 @@ export def "envr sync" [] {
'TODO:' 'TODO:'
} }
# Search for .env files
export def "envr scan" [] {
'TODO:'
}
# Edit your config # Edit your config
export def "envr edit config" [] { export def "envr edit config" [] {
^$env.EDITOR (config-file) ^$env.EDITOR (config-file)