mirror of
https://github.com/sbrow/envr.git
synced 2025-12-29 23:47:39 -05:00
docs: Added TODOs.
This commit is contained in:
14
mod.nu
14
mod.nu
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user