f
This commit is contained in:
@@ -12,7 +12,7 @@ Medios-Macina is a file media manager and virtual toolbox capable of downloading
|
|||||||
<li><i>Do you want a no-brainer one-stop shop for finding & downloading applications?</i></li>
|
<li><i>Do you want a no-brainer one-stop shop for finding & downloading applications?</i></li>
|
||||||
<li><i>Are you one that has an unorganized & unapologetic mess of files that are loosely organized in random folders?</i></li>
|
<li><i>Are you one that has an unorganized & unapologetic mess of files that are loosely organized in random folders?</i></li>
|
||||||
<li><i>Does it take you several brainfarts until you get a scent of where that file is at that your looking for?</i></li>
|
<li><i>Does it take you several brainfarts until you get a scent of where that file is at that your looking for?</i></li>
|
||||||
<li><i></i></li>
|
<li><i>Do you have trouble struggling with filenames so that you can find the file you want later?</i></li>
|
||||||
</ul>
|
</ul>
|
||||||
<hr>
|
<hr>
|
||||||
<h2>CONTENTS</H2>
|
<h2>CONTENTS</H2>
|
||||||
|
|||||||
@@ -123,17 +123,17 @@ LOGO = r"""
|
|||||||
██║╚██╔╝██║██╔══╝ ██║ ██║██╔══╝ ██║██╔══██║ ██║╚██╔╝██║██╔══██║██║ ██║██║╚██╗██║██╔══██║
|
██║╚██╔╝██║██╔══╝ ██║ ██║██╔══╝ ██║██╔══██║ ██║╚██╔╝██║██╔══██║██║ ██║██║╚██╗██║██╔══██║
|
||||||
██║ ╚═╝ ██║███████╗██████╔╝███████╗██║██║ ██║ ██║ ╚═╝ ██║██║ ██║╚██████╗██║██║ ╚████║██║ ██║
|
██║ ╚═╝ ██║███████╗██████╔╝███████╗██║██║ ██║ ██║ ╚═╝ ██║██║ ██║╚██████╗██║██║ ╚████║██║ ██║
|
||||||
╚═╝ ╚═╝╚══════╝╚═════╝ ╚══════╝╚═╝╚═╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═╝╚═╝ ╚═══╝╚═╝ ╚═╝
|
╚═╝ ╚═╝╚══════╝╚═════╝ ╚══════╝╚═╝╚═╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═╝╚═╝ ╚═══╝╚═╝ ╚═╝
|
||||||
< ΓΝΩΘΙ ΣΕΑΥΤΟΝ | TEMET NOSCE | KNOW THYSELF >
|
< ΓΝΩΘΙ ΣΕΑΥΤΟΝ | TEMET NOSCE | KNOW THYSELF >
|
||||||
0123456789123456789123456789123456789123456789
|
0123456789123456789123456789123456789123456789
|
||||||
0246813579246813579246813579246813579246813579
|
0246813579246813579246813579246813579246813579
|
||||||
0369369369369369369369369369369369369369369369
|
0369369369369369369369369369369369369369369369
|
||||||
0483726159483726159483726159483726159483726159
|
0483726159483726159483726159483726159483726159
|
||||||
0516273849516273849516273849516273849516273849
|
0516273849516273849516273849516273849516273849
|
||||||
0639639639639639639639639639639639639639639639
|
0639639639639639639639639639639639639639639639
|
||||||
0753816429753816429753816429753816429753816429
|
0753816429753816429753816429753816429753816429
|
||||||
0876543219876543219876543219876543219876543219
|
0876543219876543219876543219876543219876543219
|
||||||
0999999999999999999999999999999999999999999999
|
0999999999999999999999999999999999999999999999
|
||||||
< ALL WITHIN ARE KNOW | ABLE ALL ARE WITHOUT >
|
< ALL WITHIN ARE KNOW | ABLE ALL ARE WITHOUT >
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@@ -933,10 +933,14 @@ def main() -> int:
|
|||||||
# Clear the terminal before showing logo
|
# Clear the terminal before showing logo
|
||||||
os.system('cls' if os.name == 'nt' else 'clear')
|
os.system('cls' if os.name == 'nt' else 'clear')
|
||||||
term_width = shutil.get_terminal_size((80, 20)).columns
|
term_width = shutil.get_terminal_size((80, 20)).columns
|
||||||
logo_lines = LOGO.strip().splitlines()
|
logo_lines = LOGO.strip('\n').splitlines()
|
||||||
|
max_line_width = 0
|
||||||
|
for line in logo_lines:
|
||||||
|
max_line_width = max(max_line_width, len(line.rstrip()))
|
||||||
|
padding = ' ' * max((term_width - max_line_width) // 2, 0)
|
||||||
print("\n" * 2)
|
print("\n" * 2)
|
||||||
for line in logo_lines:
|
for line in logo_lines:
|
||||||
print(line.center(term_width))
|
print(f"{padding}{line.rstrip()}")
|
||||||
print("\n")
|
print("\n")
|
||||||
|
|
||||||
# Determine total steps for progress bar
|
# Determine total steps for progress bar
|
||||||
@@ -1486,6 +1490,7 @@ if (Test-Path (Join-Path $repo 'CLI.py')) {
|
|||||||
_install_user_shims(repo_root)
|
_install_user_shims(repo_root)
|
||||||
|
|
||||||
if not args.quiet:
|
if not args.quiet:
|
||||||
|
os.system('cls' if os.name == 'nt' else 'clear')
|
||||||
print()
|
print()
|
||||||
print("command: mm")
|
print("command: mm")
|
||||||
print(".config")
|
print(".config")
|
||||||
|
|||||||
@@ -1,10 +0,0 @@
|
|||||||
import importlib
|
|
||||||
import sys
|
|
||||||
import traceback
|
|
||||||
|
|
||||||
try:
|
|
||||||
importlib.import_module("CLI")
|
|
||||||
print("CLI imported OK")
|
|
||||||
except Exception:
|
|
||||||
traceback.print_exc()
|
|
||||||
sys.exit(1)
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
from pathlib import Path
|
|
||||||
p = Path('Store/registry.py')
|
|
||||||
lines = p.read_text(encoding='utf-8').splitlines()
|
|
||||||
stack = [0]
|
|
||||||
for i, line in enumerate(lines, start=1):
|
|
||||||
if not line.strip():
|
|
||||||
continue
|
|
||||||
leading = len(line) - len(line.lstrip(' '))
|
|
||||||
if leading > stack[-1]:
|
|
||||||
# increased indent -> push
|
|
||||||
stack.append(leading)
|
|
||||||
else:
|
|
||||||
# dedent: must match an existing level
|
|
||||||
if leading != stack[-1]:
|
|
||||||
if leading in stack:
|
|
||||||
# pop until match
|
|
||||||
while stack and stack[-1] != leading:
|
|
||||||
stack.pop()
|
|
||||||
else:
|
|
||||||
print(f"Line {i}: inconsistent indent {leading}, stack levels {stack}")
|
|
||||||
print(repr(line))
|
|
||||||
break
|
|
||||||
print('Done')
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
import re
|
|
||||||
from pathlib import Path
|
|
||||||
p = Path(r'c:\Forgejo\Medios-Macina\CLI.py')
|
|
||||||
s = p.read_text(encoding='utf-8')
|
|
||||||
pattern = re.compile(r'(?s)if False:\s*class _OldPipelineExecutor:.*?from rich\\.markdown import Markdown\\s*')
|
|
||||||
m = pattern.search(s)
|
|
||||||
print('found', bool(m))
|
|
||||||
if m:
|
|
||||||
print('start', m.start(), 'end', m.end())
|
|
||||||
print('snippet:', s[m.start():m.start()+120])
|
|
||||||
else:
|
|
||||||
# print a slice around the if False for debugging
|
|
||||||
i = s.find('if False:')
|
|
||||||
print('if False index', i)
|
|
||||||
print('around if False:', s[max(0,i-50):i+200])
|
|
||||||
j = s.find('from rich.markdown import Markdown', i)
|
|
||||||
print('next from rich index after if False', j)
|
|
||||||
if j!=-1:
|
|
||||||
print('around that:', s[j-50:j+80])
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
import traceback
|
|
||||||
|
|
||||||
try:
|
|
||||||
from Store import Store
|
|
||||||
s = Store(config={}, suppress_debug=True)
|
|
||||||
print('INSTANCE TYPE:', type(s))
|
|
||||||
print('HAS is_available:', hasattr(s, 'is_available'))
|
|
||||||
if hasattr(s, 'is_available'):
|
|
||||||
print('is_available callable:', callable(getattr(s, 'is_available')))
|
|
||||||
print('DIR:', sorted([n for n in dir(s) if not n.startswith('__')]))
|
|
||||||
except Exception:
|
|
||||||
traceback.print_exc()
|
|
||||||
@@ -1,35 +0,0 @@
|
|||||||
from pathlib import Path
|
|
||||||
p=Path('SYS/pipeline.py')
|
|
||||||
s=p.read_text(encoding='utf-8')
|
|
||||||
lines=s.splitlines()
|
|
||||||
stack=[]
|
|
||||||
for i,l in enumerate(lines,1):
|
|
||||||
stripped=l.strip()
|
|
||||||
# Skip commented lines
|
|
||||||
if stripped.startswith('#'):
|
|
||||||
continue
|
|
||||||
# compute indent as leading spaces (tabs are converted)
|
|
||||||
indent = len(l) - len(l.lstrip(' '))
|
|
||||||
if stripped.startswith('try:'):
|
|
||||||
stack.append((indent, i))
|
|
||||||
if stripped.startswith('except ') or stripped=='except:' or stripped.startswith('finally:'):
|
|
||||||
# find the most recent try with same indent
|
|
||||||
for idx in range(len(stack)-1, -1, -1):
|
|
||||||
if stack[idx][0] == indent:
|
|
||||||
stack.pop(idx)
|
|
||||||
break
|
|
||||||
else:
|
|
||||||
# no matching try at same indent
|
|
||||||
print(f"Found {stripped.split()[0]} at line {i} with no matching try at same indent")
|
|
||||||
|
|
||||||
print('Unmatched try count', len(stack))
|
|
||||||
if stack:
|
|
||||||
print('Unmatched try positions (indent, line):', stack)
|
|
||||||
for indent, lineno in stack:
|
|
||||||
start = max(1, lineno - 10)
|
|
||||||
end = min(len(lines), lineno + 10)
|
|
||||||
print(f"Context around line {lineno}:")
|
|
||||||
for i in range(start, end + 1):
|
|
||||||
print(f"{i:5d}: {lines[i-1]}")
|
|
||||||
else:
|
|
||||||
print("All try statements appear matched")
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
import importlib
|
|
||||||
import traceback
|
|
||||||
|
|
||||||
try:
|
|
||||||
m = importlib.import_module('Provider.vimm')
|
|
||||||
print('Imported', m)
|
|
||||||
print('Vimm class:', getattr(m, 'Vimm', None))
|
|
||||||
except Exception as e:
|
|
||||||
print('Import failed:', e)
|
|
||||||
traceback.print_exc()
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
from pathlib import Path
|
|
||||||
p = Path('Store/registry.py')
|
|
||||||
for i, line in enumerate(p.read_text(encoding='utf-8').splitlines(), start=1):
|
|
||||||
leading = len(line) - len(line.lstrip(' '))
|
|
||||||
if leading > 20:
|
|
||||||
print(i, leading, repr(line))
|
|
||||||
@@ -1,26 +0,0 @@
|
|||||||
#!/usr/bin/env python3
|
|
||||||
"""Format all tracked Python files using the repo's YAPF style.
|
|
||||||
|
|
||||||
This script intentionally formats only files tracked by git to avoid touching
|
|
||||||
files that are ignored (e.g., venv, site-packages).
|
|
||||||
"""
|
|
||||||
import subprocess
|
|
||||||
import sys
|
|
||||||
|
|
||||||
try:
|
|
||||||
out = subprocess.check_output(["git", "ls-files", "*.py"]).decode("utf-8")
|
|
||||||
except subprocess.CalledProcessError as exc:
|
|
||||||
print("Failed to get tracked files from git:", exc, file=sys.stderr)
|
|
||||||
sys.exit(1)
|
|
||||||
|
|
||||||
files = [f for f in (line.strip() for line in out.splitlines()) if f]
|
|
||||||
print(f"Formatting {len(files)} tracked python files...")
|
|
||||||
if not files:
|
|
||||||
print("No tracked python files found.")
|
|
||||||
sys.exit(0)
|
|
||||||
|
|
||||||
for path in files:
|
|
||||||
print(path)
|
|
||||||
subprocess.run([sys.executable, "-m", "yapf", "-i", "--style", ".style.yapf", path], check=False)
|
|
||||||
|
|
||||||
print("Done")
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
import pathlib
|
|
||||||
p = pathlib.Path('Store/registry.py')
|
|
||||||
with p.open('r', encoding='utf-8') as f:
|
|
||||||
lines = f.readlines()
|
|
||||||
for i in range(312, 328):
|
|
||||||
if i-1 < len(lines):
|
|
||||||
line = lines[i-1]
|
|
||||||
leading = line[:len(line)-len(line.lstrip('\t '))]
|
|
||||||
print(f"{i}: {repr(line.rstrip())} | leading={repr(leading)} len={len(leading)} chars={[ord(c) for c in leading]}")
|
|
||||||
else:
|
|
||||||
print(f"{i}: <EOF>")
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
from pathlib import Path
|
|
||||||
p = Path('Store/registry.py')
|
|
||||||
counts = {}
|
|
||||||
for i, line in enumerate(p.read_text(encoding='utf-8').splitlines(), start=1):
|
|
||||||
if not line.strip():
|
|
||||||
continue
|
|
||||||
leading = len(line) - len(line.lstrip(' '))
|
|
||||||
counts[leading] = counts.get(leading, 0) + 1
|
|
||||||
for k in sorted(counts.keys()):
|
|
||||||
print(k, counts[k])
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
from ProviderCore.registry import list_search_providers, list_providers
|
|
||||||
|
|
||||||
print('Search providers:', list_search_providers())
|
|
||||||
print('All providers:', list_providers())
|
|
||||||
Reference in New Issue
Block a user