dops.fish defined `docker`, not `dops`. dops was never defined; docker was only conditionally defined as a side effect of the failed dops autoload, so its behavior could silently change mid-session. See JOB-BRIEF-FINDINGS.md §1. - functions/dops.fish now defines dops: a real enhanced `docker ps` listing (custom Names/Image/Status/Ports table), with its own --help. - functions/docker.fish is a new file holding the ps-redirect wrapper, fixed to actually call dops (previously called the still-undefined dops from inside itself). - Bare `docker` with no arguments no longer falls through an if-with-no-else (the fish false-zero, AGENTS.md standing gotcha #5) and does nothing; it now runs the real docker binary, which prints its own usage. - tests/functional.fish: updated the now-stale comment explaining why the help-flag check resolves the real function name instead of the file stem.
32 lines
780 B
Fish
32 lines
780 B
Fish
# Copyright (C) 2026 Rootiest
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
# CATEGORY
|
|
# 12-ai-and-developer-tools
|
|
#
|
|
# DEPENDENCIES
|
|
# docker
|
|
#
|
|
# SYNOPSIS
|
|
# dops [args...]
|
|
#
|
|
# DESCRIPTION
|
|
# Enhanced container listing: runs docker ps with a clean custom table
|
|
# (Names, Image, Status, Ports) instead of docker's noisier default
|
|
# columns. Extra arguments (e.g. -a) are forwarded to docker ps.
|
|
#
|
|
# ARGUMENTS
|
|
# args... Arguments forwarded to `docker ps`
|
|
#
|
|
# EXIT STATUS
|
|
# Exit status of `docker ps`
|
|
#
|
|
# EXAMPLE
|
|
# dops
|
|
# dops -a
|
|
function dops --description 'Enhanced, formatted docker ps listing'
|
|
__fish_help_header (status current-function) $argv; and return 0
|
|
|
|
command docker ps --format 'table {{.Names}}\t{{.Image}}\t{{.Status}}\t{{.Ports}}' $argv
|
|
end
|