lib + cmds.projects: Use lib.Uri

Remove the feeble attempts at unifying URI handling, and use class
Uri from lib.Uri instead.

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2026-04-27 09:37:28 +02:00
commit d9746cd20b
Signed by: Jan Lindemann
GPG key ID: 3750640C9E25DD61

View file

@ -1,5 +1,8 @@
# -*- coding: utf-8 -*-
from __future__ import annotations
from typing import TYPE_CHECKING
import os, sys, subprocess, asyncio, pwd, grp, stat
from functools import cache
@ -10,9 +13,12 @@ from ..base import Result, StatResult
from ..log import *
from ..util import pretty_cmd
if TYPE_CHECKING:
from ..Uri import Uri
class Local(Base):
def __init__(self, uri='local', *args, **kwargs) -> None:
def __init__(self, uri: str|Uri='local', *args, **kwargs) -> None:
super().__init__(uri, *args, **kwargs)
@cache