Older Flatpak versions cannot read the signature lookaside from the repository file directly. Run these commands to add the repository and configure verification manually:
`; }
```
--------------------------------
### Manage configuration
Source: https://github.com/aetherpak/cli/blob/main/docs/site/index.html
Gets, sets, or displays configuration parameter settings using dot-notation keys.
```bash
# Get a configuration value
aetherpak config get remote_name
aetherpak config get branding.logo_url
# Set a configuration value
aetherpak config set remote_name custom-remote
aetherpak config set branding.logo_url https://new-logo.png
# Show resolved configuration and active overrides
aetherpak config show
```
--------------------------------
### Custom HTML Template Example
Source: https://github.com/aetherpak/cli/blob/main/docs/site/index.html
Demonstrates using Go template syntax to iterate over applications and branches to generate a repository index page.
```html
{{.RepoTitle}}
{{.RepoTitle}}
{{range .Apps}}
{{if .Icon}}{{end}}
{{.Name}} ({{.ID}})
{{.Summary}}
Releases
{{range .Branches}}
Branch: {{.Branch}} | Arches: {{join .Arches ", "}}
Released on: {{.FormattedDate}} | Size: {{formatSize .InstalledSize}}
Install: {{.InstallCmd}}
{{end}}
{{end}}
```
--------------------------------
### AetherPak YAML Configuration Example
Source: https://github.com/aetherpak/cli/blob/main/docs/site/index.html
Defines the structure for repository settings, channel mappings, linter rules, and application definitions.
```yaml
registry: ghcr.io
oci_repository: my-org/my-app
pages_url: https://flatpak.example.com
remote_name: example-repo
output_dir: .aetherpak-output
no_sign: false
repo_title: "My Custom Flatpak Repository"
channel_mappings:
"main": "beta"
"staging/*": "alpha"
linter:
strict: true
ignore_rules: ["appstream-screenshot-missing"]
exceptions: ["appstream-license-missing"]
exceptions_file: "linter-exceptions.json"
defaults:
ccache: true
run_linter: true
state_dir: ".builder-state"
remotes:
flathub: https://dl.flathub.org/repo/flathub.flatpakrepo
flatpaks:
- remote: flathub
ref: org.gnome.Sdk//45
branding:
logo_url: "https://example.com/logo.png"
accent_color: "#a855f7"
footer_text: "Custom Repo Landing Page Footer"
index_template: "templates/custom_index.html"
apps:
- id: org.example.App
manifest: apps/org.example.App/manifest.json
runtime: gnome-50
arches: [x86_64, aarch64]
run-linter: true
remotes:
repoA: https://example.com/repoA.flatpakrepo
flatpaks:
- remote: repoA
ref: org.gnome.Sdk.ExtensionA//45
- id: com.example.Other
branch: beta
bundles:
x86_64:
url: https://upstream.com/Other_x86_64.flatpak
sha256: 2159fc643175dcf54f8b9293f48fb8b11577fa0ea5514...
```
--------------------------------
### Use Template Helper Functions
Source: https://github.com/aetherpak/cli/blob/main/README.md
Examples of using built-in helper functions for joining slices, formatting file sizes, and parsing timestamps within Go templates.
```text
{{join .Arches "/"}} -> aarch64/x86_64
```
```text
{{formatSize .InstalledSize}} -> 20 MB
```
```text
{{formatDate .Timestamp "2006-01-02"}} -> 2026-06-01
```
--------------------------------
### aetherpak config
Source: https://github.com/aetherpak/cli/blob/main/README.md
Gets, sets, or displays configuration parameter settings.
```APIDOC
## aetherpak config
### Description
Gets, sets, or displays configuration parameter settings.
### Operations
- **get **: Retrieve a configuration value.
- **set **: Set a configuration value.
- **show**: Display resolved configuration and active overrides.
```
--------------------------------
### Render Application UI Cards
Source: https://github.com/aetherpak/cli/blob/main/pkg/site/index.html
Generates HTML for application cards, including icons, summaries, and installation commands for different branches and extensions.
```javascript
const cards = ids.map(id => { const app = apps[id]; const name = app.meta.name || id.split('.').pop(); const icon = app.icon ? `` : `
${ICON_APP}
`; const summary = app.meta.summary ? `
${esc(app.meta.summary)}
` : ''; const rels = Object.values(app.ch).sort((a, b) => b.ts - a.ts).map((c, i) => { const cmd = `flatpak install --user ${remoteName} ${id}//${c.branch}`; const refFile = `refs/${id}-${c.branch.replace(/\//g, '-')}.flatpakref`; const arches = [...c.arches].sort().map(a => `${esc(a)}`).join(''); let companionsHtml = ''; if (c.companions && c.companions.length > 0) { const itemsHtml = c.companions.map(comp => { const compArches = [...comp.arches].sort().map(a => `${esc(a)}`).join(''); let iconSvg = ''; if (comp.type === 'Debug') { iconSvg = ``; } else { iconSvg = ``; }
```
--------------------------------
### Import prebuilt bundles
Source: https://github.com/aetherpak/cli/blob/main/README.md
Ingests .flatpak bundles and rebinds channels.
```bash
aetherpak import --app-id org.example.App --bundle-url https://... --bundle-sha256
```
--------------------------------
### Build application
Source: https://github.com/aetherpak/cli/blob/main/docs/site/index.html
Wraps sandboxed flatpak-builder builds.
```bash
aetherpak build --manifest manifest.json --flatpak-remote flathub=https://dl.flathub.org/repo/flathub.flatpakrepo --flatpak-dep flathub:org.gnome.Sdk//45
```
--------------------------------
### Compile the CLI binary
Source: https://github.com/aetherpak/cli/blob/main/CONTRIBUTING.md
Builds the project and outputs the binary to the bin/aetherpak directory.
```bash
make build
```
--------------------------------
### aetherpak import
Source: https://github.com/aetherpak/cli/blob/main/README.md
Ingests prebuilt bundles and rebinds channels.
```APIDOC
## aetherpak import
### Description
Ingests prebuilt bundles (.flatpak) and rebinds channels.
### Parameters
- **--app-id** (string) - Required - Target application ID.
- **--bundle-url** (string) - Required - URL of the bundle.
- **--bundle-sha256** (string) - Required - SHA256 hash of the bundle.
```
--------------------------------
### Import flatpak bundle
Source: https://github.com/aetherpak/cli/blob/main/docs/site/index.html
Imports prebuilt flatpak bundle packages.
```bash
aetherpak import --app-id org.example.App --bundle-url https://example.com/download.flatpak
```
--------------------------------
### Publish application
Source: https://github.com/aetherpak/cli/blob/main/docs/site/index.html
Chains build/import and OCI push operations for target applications.
```bash
# Config-driven publish
aetherpak publish --app-id org.example.App --registry ghcr.io
# One-off publish from local manifest
aetherpak publish --manifest apps/manifest.json --arch x86_64
# One-off publish from Flatpak bundle (URL or local path)
aetherpak publish --bundle https://example.com/app.flatpak
```
--------------------------------
### Add application to Aetherpak
Source: https://github.com/aetherpak/cli/blob/main/docs/site/index.html
Onboards an application into aetherpak.yaml using a local manifest, bundle URL, or git repository.
```bash
aetherpak add --manifest org.example.App.yaml
```
--------------------------------
### Build static site
Source: https://github.com/aetherpak/cli/blob/main/README.md
Downloads the static index, merges cell records, and regenerates index listings.
```bash
aetherpak build-site --pages-url https://flatpak.my-org.com --site-dir _site --reconcile --index-template templates/custom_index.html
```
--------------------------------
### Preview landing page
Source: https://github.com/aetherpak/cli/blob/main/docs/site/index.html
Generates and serves a local landing page template preview.
```bash
aetherpak preview --port 8080
```
--------------------------------
### aetherpak build
Source: https://github.com/aetherpak/cli/blob/main/README.md
Wraps flatpak-builder sandbox compilation.
```APIDOC
## aetherpak build
### Description
Wraps flatpak-builder sandbox compilation.
### Parameters
- **--app-id** (string) - Required - Target application ID.
- **--manifest** (string) - Required - Path to the manifest file.
- **--arch** (string) - Required - Target architecture.
- **--linter-exception** (string) - Optional - Linter exception flags.
- **--flatpak-remote** (string) - Optional - Repeatable flag to register Flatpak remotes.
- **--flatpak-dep** (string) - Optional - Repeatable flag to install Flatpak dependencies.
- **--no-install-deps** (boolean) - Optional - Disable automatic injection of install-deps-from flags.
- **--no-flathub** (boolean) - Optional - Disable automatic injection of the flathub remote.
```
--------------------------------
### Build site index
Source: https://github.com/aetherpak/cli/blob/main/docs/site/index.html
Combines build records into public landing indexes.
```bash
aetherpak build-site --pages-url https://flatpak.org --site-dir _site
```
--------------------------------
### Run E2E integration tests
Source: https://github.com/aetherpak/cli/blob/main/CONTRIBUTING.md
Spins up a local OCI registry container to perform end-to-end publishing tests.
```bash
make test/integration
```
--------------------------------
### aetherpak preview
Source: https://github.com/aetherpak/cli/blob/main/README.md
Generates and serves a local landing page template preview using customizable dummy mock data or a live production index.
```APIDOC
## aetherpak preview
### Description
Generates and serves a local landing page template preview using customizable dummy mock data or a live production index.
### Options
- **--template, -t** (path) - Optional - Local path to custom HTML repository index template.
- **--default-template** (flag) - Optional - Force using the default embedded landing page template.
- **--live** (flag) - Optional - Fetch live production index data instead of generating dummy data.
- **--live-url** (url) - Optional - Live Pages URL to download the index from.
- **--gpg** (boolean) - Optional - Enable GPG signing simulation for dummy data (defaults to true).
- **--apps** (single|multiple) - Optional - Simulate single or multiple applications in dummy data (defaults to multiple).
- **--site-dir** (path) - Optional - Destination directory for preview assets (defaults to _preview).
- **--no-serve** (flag) - Optional - Do not start a local HTTP server to preview the site.
- **--port** (port) - Optional - Port for local HTTP server (defaults to 8080).
```
--------------------------------
### Initialize Theme Toggle
Source: https://github.com/aetherpak/cli/blob/main/pkg/site/index.html
Manages the dark/light mode state by toggling CSS classes on the document root and persisting the preference in localStorage.
```javascript
function setupThemeToggle() { const toggle = document.getElementById('theme-toggle'); if (toggle) { toggle.addEventListener('click', () => { const current = document.documentElement.classList.contains('dark') || (window.matchMedia('(prefers-color-scheme: dark)').matches && !document.documentElement.classList.contains('light')) ? 'dark' : 'light'; const next = current === 'dark' ? 'light' : 'dark'; document.documentElement.className = next; localStorage.setItem('theme', next); }); } }
```
--------------------------------
### Coordinate release lifecycle
Source: https://github.com/aetherpak/cli/blob/main/README.md
Executes the full release process including matrix planning, compilation, artifact pushing, and site index generation.
```bash
aetherpak release --base-sha --workers 4 --index-template templates/custom_index.html
```
--------------------------------
### aetherpak publish
Source: https://github.com/aetherpak/cli/blob/main/README.md
Chains compilation, importer, and OCI push sequentially for target applications.
```APIDOC
## CLI Command: aetherpak publish
### Description
Chains compilation/importer and OCI push sequentially in-memory for target application(s).
### Options
- **--app-id** (id) - Optional - Target application ID.
- **--manifest** (path) - Optional - Path to local Flatpak manifest.
- **--bundle** (url|path) - Optional - Flatpak bundle URL or path.
- **--confirm** (flag) - Optional - Skip interactive confirmation.
- **--arch** (arch) - Optional - Target CPU architecture.
- **--gpg-key** (path) - Optional - Local path to GPG private key.
- **--no-sign** (flag) - Optional - Disable GPG signing.
- **--allow-unsigned** (flag) - Optional - Allow publishing unsigned images.
- **--dry-run** (flag) - Optional - Simulate publishing.
```
--------------------------------
### Release application matrix
Source: https://github.com/aetherpak/cli/blob/main/docs/site/index.html
Plans matrix entries, builds or imports concurrently, pushes OCI packages, and regenerates index sites.
```bash
aetherpak release --base-sha abc123def --workers 4
```
--------------------------------
### Check system and configuration status
Source: https://github.com/aetherpak/cli/blob/main/README.md
Validates system dependencies, configuration files, and GPG key integrity. Use --json for machine-readable output.
```bash
aetherpak status
```
--------------------------------
### Check system status
Source: https://github.com/aetherpak/cli/blob/main/docs/site/index.html
Validates system dependencies, repository configuration files, and GPG signing credentials.
```bash
aetherpak status --gpg-key key.asc
```
--------------------------------
### aetherpak build-site
Source: https://github.com/aetherpak/cli/blob/main/README.md
Downloads old static index, merges recent cell records, and regenerates index listings.
```APIDOC
## aetherpak build-site
### Description
Downloads old static index, merges recent cell records, and regenerates index listings.
### Parameters
- **--pages-url** (string) - Required - URL of the pages.
- **--site-dir** (string) - Required - Directory for the site.
- **--reconcile** (boolean) - Optional - Reconcile records.
- **--index-template** (string) - Optional - Path to index template.
- **--gpg-key** (string) - Optional - Path to GPG key.
- **--no-sign** (boolean) - Optional - Disable GPG signing.
- **--allow-unsigned** (boolean) - Optional - Allow unsigned index.
```
--------------------------------
### Inspect repository
Source: https://github.com/aetherpak/cli/blob/main/docs/site/index.html
Extracts metadata from an existing OSTree repository.
```bash
aetherpak inspect-repo --repo-path repo
```
--------------------------------
### Plan build matrices
Source: https://github.com/aetherpak/cli/blob/main/README.md
Computes matrices for changed assets based on a specific base SHA diff.
```bash
aetherpak plan --base-sha --workflow-path --output json
```
--------------------------------
### aetherpak add
Source: https://github.com/aetherpak/cli/blob/main/README.md
Creates or modifies an aetherpak.yaml by adding an application from a local manifest, remote bundle URL, or git repository.
```APIDOC
## CLI Command: aetherpak add
### Description
Creates or modifies an `aetherpak.yaml` by adding one application from a local manifest, a remote bundle URL, or a git repository. Runs an interactive wizard on a TTY or reads flags.
### Options
- **--manifest** (path) - Optional - Path to local manifest.
- **--bundle-url** (url) - Optional - Remote bundle URL.
- **--git** (url) - Optional - Git repository URL.
- **--git-manifest** (path) - Optional - Manifest path within the git repo.
- **--submodule-path** (path) - Optional - Submodule destination.
- **--app-id** (string) - Optional - Application ID.
- **--branch** (string) - Optional - Flatpak release channel (default: stable).
- **--arch** (string) - Optional - Architecture (repeatable).
- **--bundle-sha256** (hex) - Optional - Expected bundle checksum.
- **--confirm / -y** (flag) - Optional - Skip diff confirmation.
```
--------------------------------
### Initialize Application Search
Source: https://github.com/aetherpak/cli/blob/main/pkg/site/index.html
Filters application cards in real-time based on user input and provides visual feedback when no results match.
```javascript
function setupSearch() { const searchInput = document.getElementById('app-search'); const searchStatus = document.getElementById('search-status'); if (!searchInput) return; let announceTimeout = null; searchInput.addEventListener('input', (e) => { const query = e.target.value.toLowerCase().trim(); const cards = document.querySelectorAll('#app-content .app-card'); let visibleCount = 0; cards.forEach(card => { const name = card.dataset.appName.toLowerCase(); const id = card.dataset.appId.toLowerCase(); const summary = card.dataset.appSummary.toLowerCase(); if (name.includes(query) || id.includes(query) || summary.includes(query)) { card.style.display = 'block'; visibleCount++; } else { card.style.display = 'none'; } }); const emptySearch = document.getElementById('empty-search'); if (visibleCount === 0) { if (!emptySearch) { const div = document.createElement('div'); div.id = 'empty-search'; div.className = 'empty-state'; div.style.marginTop = '2rem'; div.innerHTML = `
No matching applications
Try searching for a different keyword or app ID.
`; document.getElementById('apps-container').appendChild(div); } } else { if (emptySearch) emptySearch.remove(); } if (searchStatus) { clearTimeout(announceTimeout); announceTimeout = setTimeout(() => { if (query === '') { searchStatus.textContent = ''; } else { searchStatus.textContent = visibleCount === 1 ? '1 application found.' : `${visibleCount} applications found.`; } }, 500); } }); }
```
--------------------------------
### Run static analysis
Source: https://github.com/aetherpak/cli/blob/main/CONTRIBUTING.md
Executes linting and vetting checks to ensure code quality before submission.
```bash
make vet
```
--------------------------------
### Plan application changes
Source: https://github.com/aetherpak/cli/blob/main/docs/site/index.html
Computes application changes compared to a base commit.
```bash
aetherpak plan --base-sha HEAD~1 --output-file plan.env
```
--------------------------------
### Fetch and Process Repository Metadata
Source: https://github.com/aetherpak/cli/blob/main/pkg/site/index.html
Fetches the static index, parses the JSON, and iterates through results to categorize applications and companions.
```javascript
fetch('index/static').then(r => { if (!r.ok) throw new Error('load'); return r.json(); }) ]).then(([signing, data]) => { const setup = buildSetup(signing); const apps = {}; const companions = []; (data.Results || []).forEach(res => (res.Images || []).forEach(img => { const L = img.Labels || {}; const ref = L['org.flatpak.ref']; if (!ref || !L['org.flatpak.metadata']) return; const [, id, arch, branch] = ref.split('/'); if (!branch) return; const isDebug = id.endsWith('.Debug'); const isLocale = id.endsWith('.Locale'); if (isDebug || isLocale) { companions.push({ id, arch, branch, type: isDebug ? 'Debug' : 'Locale', isize: L['org.flatpak.installed-size'], dsize: L['org.flatpak.download-size'], commit: L['org.flatpak.commit'], ts: Math.max(0, +L['org.flatpak.timestamp'] || 0) }); } else { const a = apps[id] || (apps[id] = { id, icon: L['org.freedesktop.appstream.icon-64'], meta: appMeta(L['org.freedesktop.appstream.appdata'] || ''), ch: {} }); const c = a.ch[branch] || (a.ch[branch] = { branch, arches: new Set(), ts: 0, isize: L['org.flatpak.installed-size'], dsize: L['org.flatpak.download-size'], commit: L['org.flatpak.commit'], companions: [] }); c.arches.add(arch); c.ts = Math.max(c.ts, +L['org.flatpak.timestamp'] || 0); } }));
```
--------------------------------
### aetherpak release
Source: https://github.com/aetherpak/cli/blob/main/README.md
Coordinates the entire lifecycle including matrix planning, compilation, artifact pushing, and site index layout building.
```APIDOC
## CLI Command: aetherpak release
### Description
Coordinates the entire lifecycle: runs matrix planner, compiles/imports changed records concurrently, pushes artifacts, and builds site index layouts.
### Options
- **--gpg-key** (path) - Optional - Local path to GPG private key.
- **--no-sign** (flag) - Optional - Disable GPG signing.
- **--allow-unsigned** (flag) - Optional - Allow releasing unsigned images.
- **--dry-run** (flag) - Optional - Simulate release process.
```
--------------------------------
### aetherpak status
Source: https://github.com/aetherpak/cli/blob/main/README.md
Validates system dependencies, checks configuration files, and verifies GPG keys.
```APIDOC
## CLI Command: aetherpak status
### Description
Validates that required system dependencies are available, checks configuration files, and decrypts/verifies GPG keys.
### Options
- **--gpg-key** (path) - Optional - Local path to GPG key.
- **--gpg-key-passphrase** (string) - Optional - GPG key passphrase.
- **--json** (flag) - Optional - Output diagnostics as JSON.
```
--------------------------------
### Push OCI images
Source: https://github.com/aetherpak/cli/blob/main/README.md
Converts a repository branch to an OCI image layer and pushes it to a registry.
```bash
aetherpak push-oci --app-id org.example.App --registry ghcr.io --oci-repository my-org/my-app
```
--------------------------------
### Execute AetherPak Release
Source: https://github.com/aetherpak/cli/blob/main/docs/site/index.html
Run the release command with specific base SHA and worker count to initiate the build and distribution process.
```bash
aetherpak release --base-sha HEAD~1 --workers 2
```
--------------------------------
### Define Subprocess Execution Interfaces
Source: https://github.com/aetherpak/cli/blob/main/ARCHITECTURE.md
Interfaces for command execution and lookup to enable mocking of shell binaries during testing.
```go
type Command interface {
Run() error
Start() error
Wait() error
StdoutPipe() (io.ReadCloser, error)
StderrPipe() (io.ReadCloser, error)
SetEnv(env []string)
SetStdout(w io.Writer)
SetStderr(w io.Writer)
}
type Executor interface {
Command(name string, arg ...string) Command
LookPath(file string) (string, error)
}
```
--------------------------------
### aetherpak push-oci
Source: https://github.com/aetherpak/cli/blob/main/README.md
Converts repo branch to OCI image layer and pushes.
```APIDOC
## aetherpak push-oci
### Description
Converts repo branch to OCI image layer and pushes.
### Parameters
- **--app-id** (string) - Required - Target application ID.
- **--registry** (string) - Required - Target registry.
- **--oci-repository** (string) - Required - OCI repository path.
- **--gpg-key** (string) - Optional - Path to GPG private key.
- **--no-sign** (boolean) - Optional - Disable GPG signing.
- **--allow-unsigned** (boolean) - Optional - Allow pushing unsigned images.
- **--dry-run** (boolean) - Optional - Simulate pushing without writing to remote.
```
--------------------------------
### Clean project build artifacts
Source: https://github.com/aetherpak/cli/blob/main/README.md
Commands to remove temporary files, caches, and build outputs. Requires confirmation unless the --yes flag is provided.
```bash
# Clean all temporary files (prompts for confirmation if interactive)
aetherpak clean
# Clean all temporary files without prompt (useful for CI)
aetherpak clean --yes
# Clean only compiler caches (ccache) and state directories
aetherpak clean --ccache --state --yes
```
--------------------------------
### aetherpak clean
Source: https://github.com/aetherpak/cli/blob/main/README.md
Clears builder compiler caches, state directories, template preview files, production site outputs, build-site records, and local OSTree repositories.
```APIDOC
## aetherpak clean
### Description
Clears builder compiler caches, state directories, template preview files, production site outputs, build-site records, and local OSTree repositories. Requires confirmation unless --yes, -y, or --confirm is specified.
### Options
- **--yes, -y** (flag) - Optional - Skip confirmation prompt.
- **--confirm** (flag) - Optional - Skip confirmation prompt (deprecated alias for --yes).
- **--ccache** (flag) - Optional - Clean only builder compiler caches.
- **--state** (flag) - Optional - Clean only builder state directories.
- **--preview** (flag) - Optional - Clean only template preview directories.
- **--site** (flag) - Optional - Clean only production site build outputs.
- **--records** (flag) - Optional - Clean only build-site input/output records.
- **--repo** (flag) - Optional - Clean only local OSTree repositories.
- **--ccache-dir** (path) - Optional - Custom ccache directory path.
- **--state-dir** (path) - Optional - Custom builder state directory path.
- **--preview-dir** (path) - Optional - Custom preview site directory path.
- **--site-dir** (path) - Optional - Custom production site directory path.
- **--records-dir** (path) - Optional - Custom records directory path.
- **--repo-path** (path) - Optional - Custom OSTree repository path.
```
--------------------------------
### Run unit tests
Source: https://github.com/aetherpak/cli/blob/main/CONTRIBUTING.md
Executes standard unit checks in-memory and against simulated subprocess mock wrappers.
```bash
make test
```
--------------------------------
### Format code
Source: https://github.com/aetherpak/cli/blob/main/CONTRIBUTING.md
Applies standard gofmt adjustments to ensure code adheres to project styling rules.
```bash
make fmt
```
--------------------------------
### aetherpak plan
Source: https://github.com/aetherpak/cli/blob/main/README.md
Computes matrices for changed assets since a specific base SHA diff.
```APIDOC
## aetherpak plan
### Description
Computes matrices for changed assets since a specific base SHA diff.
### Parameters
- **--base-sha** (string) - Required - The base SHA for the diff.
- **--workflow-path** (string) - Required - Path to the workflow.
- **--output** (string) - Required - Output format (e.g., json).
- **--override-branch** (string) - Optional - Overrides the Flatpak branch for all planned apps.
- **--force** (string) - Optional - Rebuilds a specific app using app-id//branch format.
```
--------------------------------
### Generate HTML Components and Error Handling
Source: https://github.com/aetherpak/cli/blob/main/pkg/site/index.html
Template literals for rendering application cards, release sections, and companion extensions, alongside the error handling logic for repository loading failures.
```javascript
return `
Serve this page over HTTP and ensure index/static exists.
`; }); });
```
--------------------------------
### Format HTML Subcommands and URLs
Source: https://github.com/aetherpak/cli/blob/main/pkg/site/index.html
Applies CSS classes to specific CLI subcommands and URL placeholders within an HTML string.
```javascript
htmlStr.replace(/\b(install|remote-add|remote-modify)\b/g, '$1'); // Restore URLs wrapped in code-url span for (let i = 0; i < urls.length; i++) { htmlStr = htmlStr.replace(`__AETHERPAK_URL_PLACEHOLDER_${i}__`, `${urls[i]}`); } return htmlStr; }
```
--------------------------------
### Configure Inline Linter Exceptions
Source: https://github.com/aetherpak/cli/blob/main/README.md
Define linter exceptions directly within the aetherpak.yaml configuration file under the linter.exceptions property.
```yaml
linter:
exceptions:
- appstream-screenshot-missing
- appstream-license-missing
```
--------------------------------
### Resolve channel
Source: https://github.com/aetherpak/cli/blob/main/docs/site/index.html
Resolves Flatpak channel names from Git ref metadata.
```bash
aetherpak resolve-channel --ref-type tag --ref-name v1.0.0
```
--------------------------------
### Push OCI image
Source: https://github.com/aetherpak/cli/blob/main/docs/site/index.html
Pushes repository commits as tagged OCI images to a remote registry.
```bash
aetherpak push-oci --app-id org.example.App --gpg-key key.asc
```
--------------------------------
### Associate Companions with Parent Applications
Source: https://github.com/aetherpak/cli/blob/main/pkg/site/index.html
Links Debug and Locale extensions to their parent applications or creates standalone entries if no parent is found.
```javascript
companions.forEach(comp => { let parentId = ''; if (comp.type === 'Debug') parentId = comp.id.slice(0, -6); else if (comp.type === 'Locale') parentId = comp.id.slice(0, -7); const parentApp = apps[parentId]; if (parentApp) { const parentBranch = parentApp.ch[comp.branch]; if (parentBranch) { let compItem = parentBranch.companions.find(c => c.type === comp.type); if (!compItem) { compItem = { type: comp.type, id: comp.id, isize: comp.isize, dsize: comp.dsize, commit: comp.commit, refFile: `refs/${comp.id}-${comp.branch.replace(/\//g, '-')}.flatpakref`, cmd: `flatpak install --user ${remoteName} ${comp.id}//${comp.branch}`, arches: new Set() }; parentBranch.companions.push(compItem); } compItem.arches.add(comp.arch); } } else { // No parent app found, treat companion as standalone const a = apps[comp.id] || (apps[comp.id] = { id: comp.id, icon: '', meta: { name: comp.id.split('.').pop(), summary: comp.type + ' runtime extension' }, ch: {} }); const c = a.ch[comp.branch] || (a.ch[comp.branch] = { branch: comp.branch, arches: new Set(), ts: 0, isize: comp.isize, dsize: comp.dsize, commit: comp.commit, companions: [] }); c.arches.add(comp.arch); c.ts = Math.max(c.ts, comp.ts); } });
```
--------------------------------
### Generate Shell Code Block
Source: https://github.com/aetherpak/cli/blob/main/pkg/site/index.html
Creates an HTML structure for displaying shell commands with a copy-to-clipboard button.
```javascript
function codeBlock(label, cmd) { const labelHtml = label ? `
${label}
` : ''; return ` ${labelHtml}
SHELL
${highlightCmd(cmd)}
`; }
```
--------------------------------
### Configure External Linter Exceptions JSON
Source: https://github.com/aetherpak/cli/blob/main/README.md
Define app-specific or wildcard linter exceptions in a separate JSON file following the Flathub format.
```json
{
"org.example.App": [
"appstream-screenshot-missing",
"appstream-summary-too-long"
],
"*": [
"appstream-license-missing"
]
}
```
--------------------------------
### Define CmdError struct for exit management
Source: https://github.com/aetherpak/cli/blob/main/ARCHITECTURE.md
Custom error type used to associate an exit code with an internal error while supporting error wrapping.
```go
type CmdError struct {
ExitCode int
Err error
}
```
=== COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.