mirror of
https://github.com/tonydamage/nux-env.git
synced 2025-12-11 13:24:28 +01:00
Updated files to use nux/* instead of nux.
This commit is contained in:
parent
f5b7b183d2
commit
d30931c3df
9 changed files with 17 additions and 21 deletions
|
|
@ -1,8 +1,9 @@
|
|||
nux.use nux/fs
|
||||
nux.log debug "Backend Dir loaded"
|
||||
|
||||
backend.dir.detect() {
|
||||
local dottaskie=$(nuxfs.closest .taskie "$1")
|
||||
local dottaskiedir=$(nuxfs.closest .taskie.self "$1")
|
||||
local dottaskie=$(nux.fs.closest .taskie "$1")
|
||||
local dottaskiedir=$(nux.fs.closest .taskie.self "$1")
|
||||
if [ -d "$dottaskie" ]; then
|
||||
echo "$dottaskie"
|
||||
elif [ -f "$dottaskie" -a "$(yaml r "$dottaskie" backend)" = "dir:self" ]; then
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ backend.github.with() {
|
|||
}
|
||||
|
||||
backend.github.detect() {
|
||||
closest_git=$(nuxfs.closest .git "$1")
|
||||
closest_git=$(nux.fs.closest .git "$1")
|
||||
|
||||
git.origins "$closest_git" | grep github.com | while read origin
|
||||
do
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ nux.use nux.json
|
|||
githublike gogs
|
||||
|
||||
backend.gogs.detect() {
|
||||
closest_git=$(nuxfs.closest .git "$1")
|
||||
closest_git=$(nux.fs.closest .git "$1")
|
||||
git.origins "$closest_git" | while read origin
|
||||
do
|
||||
nux.log debug Testing backend for: $origin
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue