Files
skillshare/.devcontainer/bin/help
T
Willie cdf7263516 feat(devcontainer): add runbook shortcut command
Auto-builds from source on each invocation, same pattern as the
ss/skillshare wrapper. Added to help screen and setup.sh quick
start message. Updated guide to document the shortcut.
2026-03-11 04:53:08 +08:00

49 lines
1.8 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}runbook${NC} <file|dir> Run E2E test runbooks. Builds from source.
${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