mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-30 20:34:38 +01:00
Update reference
This commit is contained in:
parent
7ef037977f
commit
dab2bcfec9
1 changed files with 10 additions and 3 deletions
|
@ -25,6 +25,7 @@
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from slpkg.utils import Utils
|
from slpkg.utils import Utils
|
||||||
|
from slpkg.messages import Msg
|
||||||
from slpkg.dialog_box import DialogUtil
|
from slpkg.dialog_box import DialogUtil
|
||||||
from slpkg.__metadata__ import MetaData as _meta_
|
from slpkg.__metadata__ import MetaData as _meta_
|
||||||
|
|
||||||
|
@ -35,6 +36,7 @@ class RepoEnable(object):
|
||||||
"""
|
"""
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.meta = _meta_
|
self.meta = _meta_
|
||||||
|
self.msg = Msg()
|
||||||
self.tag = "[REPOSITORIES]"
|
self.tag = "[REPOSITORIES]"
|
||||||
self.tag_line = False
|
self.tag_line = False
|
||||||
self.repositories_conf = "repositories.conf"
|
self.repositories_conf = "repositories.conf"
|
||||||
|
@ -124,6 +126,11 @@ Keys: SPACE select or deselect the highlighted repositories,
|
||||||
def reference(self):
|
def reference(self):
|
||||||
"""Reference enable repositories
|
"""Reference enable repositories
|
||||||
"""
|
"""
|
||||||
print("Enabled repositories:\n {0}".format(", ".join(self.selected)))
|
self.msg.template(78)
|
||||||
print("\nView more information with commands:\n"
|
print("| Enabled repositories:")
|
||||||
" '# slpkg repo-list' and '# slpkg repo-info'\n")
|
self.msg.template(78)
|
||||||
|
print("| {0}".format(", ".join(self.selected)))
|
||||||
|
self.msg.template(78)
|
||||||
|
print("{0}Total {1} repositories enabled.{2}\n".format(
|
||||||
|
self.meta.color["GREY"], len(self.selected),
|
||||||
|
self.meta.color["ENDC"]))
|
||||||
|
|
Loading…
Add table
Reference in a new issue