mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-20 20:34:19 +00:00
Homebrew path: replace direct stdout pipe with TreeSpinner + bytes.Buffer so brew output no longer breaks the tree layout. Captured output is only shown on failure for debugging. GitHub release path: switch download/UI-asset spinners from StartSpinner to StartTreeSpinner with correct isLast flags, add tree-line prefix to confirmation prompt, use StepEnd for cancel. Add TreeSpinner.Warn() and TreeLine() helper to internal/ui. Add devcontainer test-brew-upgrade script to simulate Homebrew path.
48 lines
1.7 KiB
Bash
Executable File
48 lines
1.7 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
# Colors
|
|
BOLD=$'\033[1m'
|
|
GREEN=$'\033[0;32m'
|
|
BLUE=$'\033[0;34m'
|
|
YELLOW=$'\033[1;33m'
|
|
NC=$'\033[0m' # No Color
|
|
|
|
cat << EOF
|
|
|
|
${BOLD}Skillshare Devcontainer Help${NC}
|
|
==========================================================
|
|
|
|
${BLUE}Core CLI${NC}
|
|
${BOLD}ss${NC} <cmd> Shortcut for 'skillshare'. Builds from source.
|
|
${BOLD}skillshare${NC} The main CLI tool.
|
|
|
|
${BLUE}Services${NC}
|
|
${BOLD}ui${NC} [-p] Start Dashboard (Vite + API). -p for project mode.
|
|
${BOLD}ui stop${NC} Stop the Dashboard.
|
|
${BOLD}docs${NC} Start Docusaurus documentation site.
|
|
${BOLD}docs stop${NC} Stop the documentation site.
|
|
|
|
${BLUE}Environment Management (Isolated HOME)${NC}
|
|
${BOLD}ssnew${NC} <name> [--init] Create and enter a new isolated shell.
|
|
${BOLD}ssuse${NC} <name> Enter an existing isolated shell.
|
|
${BOLD}ssrm${NC} <name> Force-delete an environment.
|
|
${BOLD}ssls${NC} List all isolated environments.
|
|
${BOLD}ssback${NC} Exit an isolated shell or go back to workspace.
|
|
${BOLD}ssenv${NC} <cmd> Advanced environment management.
|
|
|
|
${BLUE}Testing${NC}
|
|
${BOLD}test-brew-upgrade${NC} Simulate Homebrew upgrade path (mock brew).
|
|
|
|
${BLUE}Authentication & Security${NC}
|
|
${BOLD}credential-helper status${NC} Check GitHub/GitLab token state.
|
|
${BOLD}credential-helper off${NC} Temporarily disable all auth for testing.
|
|
|
|
${YELLOW}Tips:${NC}
|
|
- Isolated environments are stored in ${BOLD}~/.ss-envs/${NC} and are persistent.
|
|
- Use ${BOLD}ssnew --init${NC} to skip the manual 'ss init' step.
|
|
- Your shell history is saved even after container rebuilds.
|
|
|
|
==========================================================
|
|
EOF
|