mirror of
ssh://git.janware.com/janware/proj/jw-pkg
synced 2026-04-28 16:45:24 +02:00
lib.base: Add module
Add lib.base to provide basic definitions. For now, move the definiions of Result, Input and InputMode from ExecContext into lib.base. Having to import them from the ExecContect module is too heavy-handed for those simple types. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
04fef1e67a
commit
888c0495ec
17 changed files with 50 additions and 38 deletions
|
|
@ -6,13 +6,13 @@ from typing import TYPE_CHECKING
|
|||
from argparse import Namespace, ArgumentParser
|
||||
|
||||
from ...lib.log import *
|
||||
from ...lib.ExecContext import InputMode
|
||||
from ...lib.base import InputMode
|
||||
from ..Cmd import Cmd
|
||||
from ..CmdProjects import CmdProjects
|
||||
from ...App import Scope
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from ...lib.ExecContext import Result
|
||||
from ...lib.base import Result
|
||||
|
||||
class CmdCanonicalizeRemotes(Cmd): # export
|
||||
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ class CmdListRepos(Cmd): # export
|
|||
if ssh is not None:
|
||||
ssh.close()
|
||||
case 'https':
|
||||
from jw.pkg.lib.ExecContext import InputMode
|
||||
from jw.pkg.lib.base import InputMode
|
||||
cmd_input = InputMode.NonInteractive
|
||||
if re.match(r'https://github.com', args.base_url):
|
||||
curl_args = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue