Files
fish-config/functions/fast.fish
T
rootiest dccf897c9f docs(functions): add missing EXIT STATUS header docs
Fills the gaps recorded in JOB-BRIEF-FINDINGS.md for the functions
converted to header-driven --help: 16 argument-less functions gain an
EXIT STATUS section (check_fish_deps, claude-docs, claude-pr, cleanup,
fast, fzf-update, gip, gip4, hist, limine-edit, lock, ports,
screensleep, steam-dl, swapstat, tmux-clean), and 8 functions that
already document ARGUMENTS gain EXIT STATUS too (lD, lsr, lss, lstree,
lt, ltr, lx, qr).

Not touched: gip6, ld, parur, sudo-toggle, upgrade, the JOB-BRIEF's
'missing ARGUMENTS' group. Re-checked their bodies against that claim
-- none of the five take a positional argument ($argv only appears
forwarded to the --help check), so an ARGUMENTS section would document
something that doesn't exist. All five already have EXIT STATUS.
2026-09-08 01:12:04 -04:00

58 lines
1.7 KiB
Fish

# # Copyright (C) 2026 Rootiest
# # SPDX-License-Identifier: AGPL-3.0-or-later
#
# # Placeholder for a future implementation of a "fast" function
# function fast --description 'Placeholder for future fast utility'
# # Defining Catppuccin Mocha colors
# set -l flamingo F2CDCD
# set -l blue 89B4FA
# set -l mauve cba6f7
# set -l mantle 181825
#
# echo -e ""
# echo -n (set_color $flamingo)" 󰊠 "(set_color --bold)"The '"
# echo -n (set_color $mauve)"fast"
# echo -n (set_color $flamingo)"' command is not currently available."
# echo -e ""
# echo -n (set_color $blue)" Did you mean: "
# echo -n (set_color --bold $mauve)"fast-cli"
# echo -n (set_color --italics $blue)"?"(set_color normal)
# echo -e "\n"
# end
# Copyright (C) 2026 Rootiest
# SPDX-License-Identifier: AGPL-3.0-or-later
# CATEGORY
# 10-network
#
# SYNOPSIS
# fast
#
# DESCRIPTION
# Displays a styled message indicating that the fast command is unavailable
# and suggests using fast-cli instead.
#
# EXIT STATUS
# 0 Always
#
# EXAMPLE
# fast
function fast --description 'Placeholder for future fast utility'
__fish_help_header (status current-function) $argv; and return 0
# ANSI Escape Codes (Standard 16-color palette)
set -l bold "\e[1m"
set -l italic "\e[3m"
set -l red "\e[31m"
set -l blue "\e[34m"
set -l yellow "\e[33m"
set -l magenta "\e[35m"
set -l reset "\e[0m"
# Using printf for reliable ANSI rendering
printf " %b %bThe command: %b%bfast%b%b is currently unavailable.%b\n" "$yellow" "$bold" "$reset" "$magenta" "$reset" "$yellow" "$reset"
printf " %bDid you mean: %b%bfast-cli%b%b?%b\n" "$blue" "$reset" "$bold$magenta" "$reset" "$italic$blue" "$reset"
printf "\n"
end