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
ed162c69
Kaydet (Commit)
ed162c69
authored
May 11, 2020
tarafından
Suleyman Poyraz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
minor description bug fixes
üst
3af6c20e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
history.py
inary/cli/history.py
+5
-5
No files found.
inary/cli/history.py
Dosyayı görüntüle @
ed162c69
...
...
@@ -54,7 +54,7 @@ Lists previous operations.""")
group
.
add_option
(
"-s"
,
"--snapshot"
,
action
=
"store_true"
,
default
=
False
,
help
=
_
(
"Take snapshot of the current system."
))
group
.
add_option
(
"-r"
,
"--reset"
,
action
=
"store_true"
,
default
=
False
,
help
=
_
(
"
Take snapshot of the current system
."
))
help
=
_
(
"
Clear history
."
))
group
.
add_option
(
"-t"
,
"--takeback"
,
action
=
"store"
,
type
=
"int"
,
default
=-
1
,
help
=
_
(
"Takeback to the state after the given operation finished."
))
...
...
@@ -137,9 +137,8 @@ Lists previous operations.""")
return
elif
ctx
.
get_option
(
'takeback'
)
!=
-
1
:
opno
=
ctx
.
get_option
(
'takeback'
)
if
opno
!=
-
1
:
self
.
takeback
(
opno
)
return
self
.
takeback
(
opno
)
return
elif
ctx
.
get_option
(
'reset'
):
util
.
clean_dir
(
ctx
.
config
.
history_dir
())
util
.
makedirs
(
ctx
.
config
.
history_dir
())
...
...
@@ -148,4 +147,5 @@ Lists previous operations.""")
#history = History.History()
#history.add("reset")
return
self
.
redirect_output
(
self
.
print_history
())
else
:
self
.
redirect_output
(
self
.
print_history
())
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