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
17929fed
Unverified
Kaydet (Commit)
17929fed
authored
May 18, 2020
tarafından
Suleyman Poyraz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Gereksiz username ve password parametresi silindi.
üst
623ae7b3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
26 deletions
+0
-26
command.py
inary/cli/command.py
+0
-26
No files found.
inary/cli/command.py
Dosyayı görüntüle @
17929fed
...
@@ -128,8 +128,6 @@ class Command(object):
...
@@ -128,8 +128,6 @@ class Command(object):
pass
pass
def
process_opts
(
self
):
def
process_opts
(
self
):
self
.
check_auth_info
()
# make destdir absolute
# make destdir absolute
if
self
.
options
.
destdir
:
if
self
.
options
.
destdir
:
d
=
str
(
self
.
options
.
destdir
)
d
=
str
(
self
.
options
.
destdir
)
...
@@ -138,32 +136,8 @@ class Command(object):
...
@@ -138,32 +136,8 @@ class Command(object):
os
.
makedirs
(
d
)
os
.
makedirs
(
d
)
self
.
options
.
destdir
=
os
.
path
.
realpath
(
d
)
self
.
options
.
destdir
=
os
.
path
.
realpath
(
d
)
def
check_auth_info
(
self
):
username
=
self
.
options
.
username
password
=
self
.
options
.
password
# TODO: We'll get the username, password pair from a configuration
# file from users home directory. Currently we need user to
# give it from the user interface.
# if not username and not password:
# if someauthconfig.username and someauthconfig.password:
# self.authInfo = (someauthconfig.username,
# someauthconfig.password)
# return
if
username
and
password
:
self
.
options
.
authinfo
=
(
username
,
password
)
return
if
username
and
not
password
:
from
getpass
import
getpass
password
=
getpass
(
_
(
"Password: "
))
self
.
options
.
authinfo
=
(
username
,
password
)
else
:
self
.
options
.
authinfo
=
None
def
init
(
self
,
database
=
True
,
write
=
True
,
locked
=
False
):
def
init
(
self
,
database
=
True
,
write
=
True
,
locked
=
False
):
"""initialize INARY components"""
"""initialize INARY components"""
if
self
.
options
:
if
self
.
options
:
ui
=
inary
.
cli
.
CLI
(
self
.
options
.
debug
,
self
.
options
.
verbose
)
ui
=
inary
.
cli
.
CLI
(
self
.
options
.
debug
,
self
.
options
.
verbose
)
else
:
else
:
...
...
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