using System;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UIElements;
namespace KernelPanic.UI
{
/// A small command palette; input never reaches an OS shell.
internal sealed class TerminalCommandLine
{
internal static readonly string[] Commands =
{
"./start_run", "ls ~/collection", "curl gacha.sh | sh", "dpkg-reconfigure", "history --runs", "shutdown -h now",
"cat /etc/cron.daily/quests", "git log --pulls"
};
private readonly List _history = new();
private readonly TextField _input;
private readonly Label _output;
private readonly Action _activate;
private readonly Func _available;
private int _historyIndex;
private string _draft = "";
public TerminalCommandLine(VisualElement root, Action activate, Func available)
{
_input = root.Q("CommandInput");
_output = root.Q