Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
I
inary
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
1
Konular (issue)
1
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
SulinOS
inary
Commits
999599b5
Kaydet (Commit)
999599b5
authored
Şub 07, 2020
tarafından
Ali Rıza Keskin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
update-inary-cache güncellendi
üst
e8ed3024
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
37 deletions
+6
-37
Makefile
Makefile
+0
-1
update-inary-cache
scripts/update-inary-cache
+6
-11
bash-complete.sh
shell-complete/bash-complete.sh
+0
-25
No files found.
Makefile
Dosyayı görüntüle @
999599b5
...
...
@@ -9,4 +9,3 @@ build:
install
:
python3 setup.py
install
ln
-s
/usr/bin/inary-cli /usr/bin/inary
||
true
install
shell-complete/bash-complete.sh /usr/share/bash-completion/completions/inary
scripts/update-inary-cache
Dosyayı görüntüle @
999599b5
...
...
@@ -3,14 +3,9 @@ if [ $UID -ne 0 ] ; then
echo
"You must be root!"
exit
1
fi
inary dc
inary ur
echo
echo
"Listing avaiable..."
inary la
--no-color
|
awk
-F
' '
'{print $1}'
>
/var/cache/inary/avaiable
echo
"Listing installed..."
inary li
--no-color
|
awk
-F
' '
'{print $1}'
>
/var/cache/inary/installed
echo
"Listing repos..."
ls
/var/lib/inary/index/
>
/var/cache/inary/repos
echo
echo
"Done"
dest
=
""
[
"
$1
"
==
""
]
||
dest
=
"-D
$1
"
inary dc
$dest
inary rdb
$dest
inary ur
$dest
inary it
-c
system.base
$dest
shell-complete/bash-complete.sh
deleted
100644 → 0
Dosyayı görüntüle @
e8ed3024
_inary
()
{
local
cur prev opts
COMPREPLY
=()
cur
=
"
${
COMP_WORDS
[COMP_CWORD]
}
"
prev
=
"
${
COMP_WORDS
[COMP_CWORD-1]
}
"
opts
=
"ar bl bi check cm cp dc dt dr em emup er fc graph hs ix info it la lc li ln ln lp lr lu rdb rp ro rr sr sf ur up"
if
[[
${
cur
}
==
*
]]
&&
[
${
prev
}
==
inary
]
;
then
COMPREPLY
=(
$(
compgen
-W
"
${
opts
}
"
--
${
cur
})
)
fi
if
[[
${
cur
}
==
*
]]
&&
[
${
prev
}
==
it
]
;
then
avaiable
=
$(
cat
/var/cache/inary/avaiable
)
COMPREPLY
=(
$(
compgen
-W
"
${
avaiable
}
"
--
${
cur
})
)
fi
if
[[
${
cur
}
==
*
]]
&&
[
${
prev
}
==
rm
]
;
then
avaiable
=
$(
cat
/var/cache/inary/installed
)
COMPREPLY
=(
$(
compgen
-W
"
${
avaiable
}
"
--
${
cur
})
)
fi
if
[[
${
cur
}
==
*
]]
&&
[
${
prev
}
==
rr
]
;
then
avaiable
=
$(
cat
/var/cache/inary/repos
)
COMPREPLY
=(
$(
compgen
-W
"
${
avaiable
}
"
--
${
cur
})
)
fi
}
complete
-F
_inary inary
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment