From 2ba8f0a496b8a31f27073f0180e35ef8a9b8d477 Mon Sep 17 00:00:00 2001 From: michael1986 Date: Tue, 2 Dec 2025 09:17:23 +0100 Subject: [PATCH] typo fix --- .github/workflows/test.yml | 8 +-- Dockerfile | 2 +- PUBLISHING.md | 14 ++--- README.md | 18 +++--- SUMMARY.md | 6 +- USAGE.md | 6 +- debian/changelog | 2 +- debian/control | 4 +- debian/copyright | 2 +- debian/postinst | 2 +- debian/rules | 2 +- docs/CNAME | 2 +- docs/install.sh | 14 ++--- finish.sh | 114 ++++++++++++++++++------------------- homebrew/finish.rb | 14 ++--- tests/test_finish.bats | 10 ++-- 16 files changed, 110 insertions(+), 110 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 889bcc6..91850cc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -23,7 +23,7 @@ jobs: sudo apt-get install -y bash zsh curl jq bc bash-completion bats - name: Make script executable - run: chmod +x inish .sh + run: chmod +x finish.sh - name: Run BATS tests run: | @@ -37,8 +37,8 @@ jobs: run: | export HOME=$PWD/test-home mkdir -p $HOME/.local/bin - cp inish .sh $HOME/.local/bin/inish - chmod +x $HOME/.local/bin/inish + cp finish.sh $HOME/.local/bin/finish + chmod +x $HOME/.local/bin/finish $HOME/.local/bin/finish --help lint: @@ -52,7 +52,7 @@ jobs: run: sudo apt-get update && sudo apt-get install -y shellcheck - name: Run shellcheck - run: shellcheck inish .sh docs/install.sh || true + run: shellcheck finish.sh docs/install.sh || true docker: runs-on: ubuntu-latest diff --git a/Dockerfile b/Dockerfile index ac0c3f5..c964456 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -# inish .sh Docker Image +# finish.sh Docker Image FROM ubuntu:22.04 LABEL maintainer="finish contributors" diff --git a/PUBLISHING.md b/PUBLISHING.md index 4d523b5..f12df12 100644 --- a/PUBLISHING.md +++ b/PUBLISHING.md @@ -1,10 +1,10 @@ -# Publishing Guide for inish .sh +# Publishing Guide for finish.sh -This guide explains how to publish and distribute inish .sh through various channels. +This guide explains how to publish and distribute finish.sh through various channels. ## Overview -inish .sh can be distributed through multiple channels: +finish.sh can be distributed through multiple channels: 1. **Direct installation script** - One-line curl install 2. **Debian/Ubuntu packages** - APT repository 3. **Homebrew** - macOS package manager @@ -22,7 +22,7 @@ Before publishing, ensure: ## Version Management Update version numbers in these files: -1. `inish .sh` - Line 34: `export ACSH_VERSION=0.5.0` +1. `finish.sh` - Line 34: `export ACSH_VERSION=0.5.0` 2. `debian/changelog` - Add new entry 3. `homebrew/finish.rb` - Line 6: `version "0.5.0"` 4. `docs/install.sh` - Line 7: `ACSH_VERSION="v0.5.0"` @@ -102,12 +102,12 @@ sudo apt-get install finish 2. Create `apt-repo/conf/distributions`: ``` - Origin: inish .sh + Origin: finish.sh Label: finish Codename: stable Architectures: all Components: main - Description: APT repository for inish .sh + Description: APT repository for finish.sh ``` 3. Add packages: @@ -221,7 +221,7 @@ The `.github/workflows/release.yml` workflow automatically: 2. Create release on GitHub: - Go to Releases → Draft a new release - Tag: `v0.5.0` - - Title: `inish .sh v0.5.0` + - Title: `finish.sh v0.5.0` - Upload: tarball and .deb file - Write release notes diff --git a/README.md b/README.md index fd9c717..cd35394 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# inish .sh +# finish.sh Command-line completion powered by local LLMs. Press `Tab` twice and get intelligent suggestions based on your terminal context. @@ -25,7 +25,7 @@ See [Installation](#installation) below for package managers, Docker, and more o ## What It Does -inish .sh enhances your terminal with context-aware command suggestions. It analyzes: +finish.sh enhances your terminal with context-aware command suggestions. It analyzes: - Current directory and recent files - Command history @@ -129,7 +129,7 @@ source ~/.bashrc ### Docker -Run inish .sh in a container: +Run finish.sh in a container: ```bash # Build the image @@ -173,16 +173,16 @@ source ~/.bashrc ## Directory Structure ``` -~/.inish / +~/.finish/ ├── config # Configuration file -├── inish .log # Usage log +├── finish.log # Usage log └── cache/ # Cached completions ``` ## Commands ```bash -finish install # Set up inish +finish install # Set up finish finish remove # Uninstall finish config # Show/edit configuration finish model # Select model @@ -201,7 +201,7 @@ Currently supports: - **LM-Studio** (default) - Local models via OpenAI-compatible API - **Ollama** - Local models via Ollama API -Add custom providers by editing `inish .sh` and adding entries to `_inish _modellist`. +Add custom providers by editing `finish.sh` and adding entries to `_finish_modellist`. ## Development @@ -212,7 +212,7 @@ Clone and link for development: ```bash git clone https://git.appmodel.nl/Tour/finish.git finish cd finish -ln -s $PWD/inish .sh $HOME/.local/bin/finish +ln -s $PWD/finish.sh $HOME/.local/bin/finish finish install ``` @@ -262,7 +262,7 @@ docker-compose build ### Creating a Release -1. Update version in `inish .sh` (ACSH_VERSION) +1. Update version in `finish.sh` (ACSH_VERSION) 2. Update version in `debian/changelog` 3. Update version in `homebrew/finish.rb` 4. Create and push a git tag: diff --git a/SUMMARY.md b/SUMMARY.md index d97dfc4..acc79e5 100644 --- a/SUMMARY.md +++ b/SUMMARY.md @@ -1,6 +1,6 @@ # Publication Setup Summary -This document summarizes the publication setup completed for inish .sh. +This document summarizes the publication setup completed for finish.sh. ## Files Created @@ -82,7 +82,7 @@ docker run -it ghcr.io/closedloop-technologies/finish:latest ```bash git clone https://git.appmodel.nl/Tour/finish.git cd finish -./inish .sh install +./finish.sh install ``` ## Next Steps @@ -102,7 +102,7 @@ cd finish ### For First Release 1. **Update version numbers** in: - - `inish .sh` (line 34) + - `finish.sh` (line 34) - `debian/changelog` - `homebrew/finish.rb` - `docs/install.sh` diff --git a/USAGE.md b/USAGE.md index 792a71f..b45dc72 100644 --- a/USAGE.md +++ b/USAGE.md @@ -2,7 +2,7 @@ ## Installation -Install and set up inish : +Install and set up finish: ```bash finish install @@ -105,7 +105,7 @@ Remove finish completely: finish remove ``` -## Using inish +## Using finish Once enabled, just type a command and press `Tab` twice to get suggestions: @@ -125,7 +125,7 @@ Natural language also works: ## Configuration File -The config file is located at `~/.inish /config` and contains: +The config file is located at `~/.finish/config` and contains: - `provider`: Model provider (lmstudio, ollama) - `model`: Model name diff --git a/debian/changelog b/debian/changelog index f190003..ec9a413 100644 --- a/debian/changelog +++ b/debian/changelog @@ -7,4 +7,4 @@ finish (0.5.0-1) stable; urgency=medium * Intelligent caching system * Privacy-focused local operation - -- inish .sh Contributors Mon, 02 Dec 2024 12:00:00 +0000 + -- finish.sh Contributors Mon, 02 Dec 2024 12:00:00 +0000 diff --git a/debian/control b/debian/control index 582be72..f994d37 100644 --- a/debian/control +++ b/debian/control @@ -1,7 +1,7 @@ Source: finish Section: utils Priority: optional -Maintainer: inish .sh Contributors +Maintainer: finish.sh Contributors Build-Depends: debhelper (>= 10) Standards-Version: 4.5.0 Homepage: https://git.appmodel.nl/Tour/finish/finish @@ -12,7 +12,7 @@ Architecture: all Depends: bash (>= 4.0) | zsh (>= 5.0), curl, jq, bc, bash-completion Recommends: lm-studio | ollama Description: LLM-powered command-line finishtion - inish .sh enhances your terminal with context-aware command suggestions + finish.sh enhances your terminal with context-aware command suggestions using local large language models. Features include: . * Local-first operation with LM-Studio or Ollama diff --git a/debian/copyright b/debian/copyright index 0025b41..5807ec2 100644 --- a/debian/copyright +++ b/debian/copyright @@ -4,7 +4,7 @@ Upstream-Contact: https://git.appmodel.nl/Tour/finish/finish Source: https://git.appmodel.nl/Tour/finish Files: * -Copyright: 2024-2025 inish .sh Contributors +Copyright: 2024-2025 finish.sh Contributors License: BSD-2-Clause License: BSD-2-Clause diff --git a/debian/postinst b/debian/postinst index 3028afa..a2477e6 100644 --- a/debian/postinst +++ b/debian/postinst @@ -3,7 +3,7 @@ set -e case "$1" in configure) - echo "inish .sh has been installed successfully!" + echo "finish.sh has been installed successfully!" echo "" echo "To complete setup, run:" echo " finish install" diff --git a/debian/rules b/debian/rules index a733bd0..dbae5d1 100644 --- a/debian/rules +++ b/debian/rules @@ -8,7 +8,7 @@ dh $@ override_dh_auto_install: - install -D -m 0755 inish .sh $(CURDIR)/debian/finish/usr/bin/inish + install -D -m 0755 finish.sh $(CURDIR)/debian/finish/usr/bin/finish install -D -m 0644 LICENSE $(CURDIR)/debian/finish/usr/share/doc/finish/copyright install -D -m 0644 README.md $(CURDIR)/debian/finish/usr/share/doc/finish/README.md diff --git a/docs/CNAME b/docs/CNAME index db73624..f3de2d4 100644 --- a/docs/CNAME +++ b/docs/CNAME @@ -1 +1 @@ -inish \ No newline at end of file +finish \ No newline at end of file diff --git a/docs/install.sh b/docs/install.sh index 399a573..b28d369 100644 --- a/docs/install.sh +++ b/docs/install.sh @@ -1,5 +1,5 @@ #!/bin/sh -# inish .sh installer +# finish.sh installer # Usage: curl -sSL https://git.appmodel.nl/Tour/finish/raw/branch/main/docs/install.sh | bash set -e @@ -88,7 +88,7 @@ download_file() { # Main installation main() { echo_green "==========================================" - echo_green " inish .sh Installation" + echo_green " finish.sh Installation" echo_green " Version: $ACSH_VERSION" echo_green "==========================================" echo "" @@ -97,11 +97,11 @@ main() { SHELL_TYPE=$(detect_shell) case "$SHELL_TYPE" in zsh) - SCRIPT_NAME="inish .zsh" + SCRIPT_NAME="finish.zsh" RC_FILE="$HOME/.zshrc" ;; bash) - SCRIPT_NAME="inish .sh" + SCRIPT_NAME="finish.sh" RC_FILE="$HOME/.bashrc" ;; *) @@ -122,7 +122,7 @@ main() { # Determine installation location if [ -d "$HOME/.local/bin" ]; then - INSTALL_LOCATION="$HOME/.local/bin/inish " + INSTALL_LOCATION="$HOME/.local/bin/finish" # Add to PATH if not already there if ! echo "$PATH" | grep -q "$HOME/.local/bin"; then echo_warning "$HOME/.local/bin is not in PATH" @@ -132,7 +132,7 @@ main() { fi fi elif [ -w "/usr/local/bin" ]; then - INSTALL_LOCATION="/usr/local/bin/inish " + INSTALL_LOCATION="/usr/local/bin/finish" else echo_error "Cannot write to /usr/local/bin and $HOME/.local/bin doesn't exist" echo "Please create $HOME/.local/bin or run with sudo" @@ -143,7 +143,7 @@ main() { mkdir -p "$(dirname "$INSTALL_LOCATION")" # Download script - echo "Downloading inish .sh..." + echo "Downloading finish.sh..." URL="$REPO_URL/$BRANCH_OR_VERSION/$SCRIPT_NAME" if ! download_file "$URL" "$INSTALL_LOCATION"; then echo_error "Failed to download from $URL" diff --git a/finish.sh b/finish.sh index e67bb2d..2916047 100644 --- a/finish.sh +++ b/finish.sh @@ -23,12 +23,12 @@ echo_green() { export ACSH_VERSION=0.5.0 -unset _inish _modellist -declare -A _inish _modellist +unset _finish_modellist +declare -A _finish_modellist # LM-Studio models -_inish _modellist['lmstudio: darkidol-llama-3.1-8b-instruct-1.3-uncensored_gguf:2']='{ "completion_cost":0.0000000, "prompt_cost":0.0000000, "endpoint": "http://localhost:1234/v1/chat/completions", "model": "darkidol-llama-3.1-8b-instruct-1.3-uncensored_gguf:2", "provider": "lmstudio" }' +_finish_modellist['lmstudio: darkidol-llama-3.1-8b-instruct-1.3-uncensored_gguf:2']='{ "completion_cost":0.0000000, "prompt_cost":0.0000000, "endpoint": "http://localhost:1234/v1/chat/completions", "model": "darkidol-llama-3.1-8b-instruct-1.3-uncensored_gguf:2", "provider": "lmstudio" }' # Ollama model -_inish _modellist['ollama: codellama']='{ "completion_cost":0.0000000, "prompt_cost":0.0000000, "endpoint": "http://localhost:11434/api/chat", "model": "codellama", "provider": "ollama" }' +_finish_modellist['ollama: codellama']='{ "completion_cost":0.0000000, "prompt_cost":0.0000000, "endpoint": "http://localhost:11434/api/chat", "model": "codellama", "provider": "ollama" }' ############################################################################### # System Information Functions # @@ -343,7 +343,7 @@ list_cache() { find "$cache_dir" -maxdepth 1 -type f -name "acsh-*" -printf '%T+ %p\n' | sort } -_inish sh() { +_finishsh() { _init_completion || return _default_completion if [[ ${#COMPREPLY[@]} -eq 0 && $COMP_TYPE -eq 63 ]]; then @@ -528,7 +528,7 @@ set_config() { } config_command() { - local command config_file="$HOME/.inish /config" + local command config_file="$HOME/.finish/config" command="${*:2}" if [ -z "$command" ]; then show_config @@ -551,10 +551,10 @@ config_command() { } build_config() { - local config_file="$HOME/.inish /config" default_config + local config_file="$HOME/.finish/config" default_config if [ ! -f "$config_file" ]; then - echo "Creating default configuration file at ~/.inish /config" - default_config="# ~/.inish /config + echo "Creating default configuration file at ~/.finish/config" + default_config="# ~/.finish/config # Model configuration provider: lmstudio @@ -569,17 +569,17 @@ max_history_commands: 20 max_recent_files: 20 # Cache settings -cache_dir: $HOME/.inish /cache +cache_dir: $HOME/.finish/cache cache_size: 10 # Logging settings -log_file: $HOME/.inish /inish .log" +log_file: $HOME/.finish/finish.log" echo "$default_config" > "$config_file" fi } acsh_load_config() { - local config_file="$HOME/.inish /config" key value + local config_file="$HOME/.finish/config" key value if [ -f "$config_file" ]; then while IFS=':' read -r key value; do if [[ $key =~ ^# ]] || [[ -z $key ]]; then @@ -610,72 +610,72 @@ acsh_load_config() { } install_command() { - local bashrc_file="$HOME/.bashrc" inish _setup="source finish enable" inish _cli_setup="complete -F _inish sh_cli inish " + local bashrc_file="$HOME/.bashrc" finish_setup="source finish enable" finish_cli_setup="complete -F _finishsh_cli finish" if ! command -v finish &>/dev/null; then - echo_error "inish .sh not in PATH. Follow install instructions at https://git.appmodel.nl/Tour/finish" + echo_error "finish.sh not in PATH. Follow install instructions at https://git.appmodel.nl/Tour/finish" return fi - if [[ ! -d "$HOME/.inish " ]]; then + if [[ ! -d "$HOME/.finish" ]]; then echo "Creating ~/.finish directory" - mkdir -p "$HOME/.inish " + mkdir -p "$HOME/.finish" fi - local cache_dir=${ACSH_CACHE_DIR:-"$HOME/.inish /cache"} + local cache_dir=${ACSH_CACHE_DIR:-"$HOME/.finish/cache"} if [[ ! -d "$cache_dir" ]]; then mkdir -p "$cache_dir" fi build_config acsh_load_config - if ! grep -qF "$inish _setup" "$bashrc_file"; then - echo -e "# inish .sh" >> "$bashrc_file" - echo -e "$inish _setup\n" >> "$bashrc_file" - echo "Added inish .sh setup to $bashrc_file" + if ! grep -qF "$finish_setup" "$bashrc_file"; then + echo -e "# finish.sh" >> "$bashrc_file" + echo -e "$finish_setup\n" >> "$bashrc_file" + echo "Added finish.sh setup to $bashrc_file" else - echo "inish .sh setup already exists in $bashrc_file" + echo "finish.sh setup already exists in $bashrc_file" fi - if ! grep -qF "$inish _cli_setup" "$bashrc_file"; then - echo -e "# inish .sh CLI" >> "$bashrc_file" - echo -e "$inish _cli_setup\n" >> "$bashrc_file" + if ! grep -qF "$finish_cli_setup" "$bashrc_file"; then + echo -e "# finish.sh CLI" >> "$bashrc_file" + echo -e "$finish_cli_setup\n" >> "$bashrc_file" echo "Added finish CLI completion to $bashrc_file" fi echo - echo_green "inish .sh - Version $ACSH_VERSION installation complete." - echo -e "Run: source $bashrc_file to enable inish ." + echo_green "finish.sh - Version $ACSH_VERSION installation complete." + echo -e "Run: source $bashrc_file to enable finish." echo -e "Then run: finish model to select a language model." } remove_command() { - local config_file="$HOME/.inish /config" cache_dir=${ACSH_CACHE_DIR:-"$HOME/.inish /cache"} log_file=${ACSH_LOG_FILE:-"$HOME/.inish /inish .log"} bashrc_file="$HOME/.bashrc" - echo_green "Removing inish .sh installation..." + local config_file="$HOME/.finish/config" cache_dir=${ACSH_CACHE_DIR:-"$HOME/.finish/cache"} log_file=${ACSH_LOG_FILE:-"$HOME/.finish/finish.log"} bashrc_file="$HOME/.bashrc" + echo_green "Removing finish.sh installation..." [ -f "$config_file" ] && { rm "$config_file"; echo "Removed: $config_file"; } [ -d "$cache_dir" ] && { rm -rf "$cache_dir"; echo "Removed: $cache_dir"; } [ -f "$log_file" ] && { rm "$log_file"; echo "Removed: $log_file"; } - if [ -d "$HOME/.inish " ]; then - if [ -z "$(ls -A "$HOME/.inish ")" ]; then - rmdir "$HOME/.inish " - echo "Removed: $HOME/.inish " + if [ -d "$HOME/.finish" ]; then + if [ -z "$(ls -A "$HOME/.finish")" ]; then + rmdir "$HOME/.finish" + echo "Removed: $HOME/.finish" else echo "Skipped removing $HOME/.finish (not empty)" fi fi if [ -f "$bashrc_file" ]; then if grep -qF "source finish enable" "$bashrc_file"; then - sed -i '/# inish .sh/d' "$bashrc_file" - sed -i '/inish /d' "$bashrc_file" - echo "Removed inish .sh setup from $bashrc_file" + sed -i '/# finish.sh/d' "$bashrc_file" + sed -i '/finish/d' "$bashrc_file" + echo "Removed finish.sh setup from $bashrc_file" fi fi - local inish _script - inish _script=$(command -v inish ) - if [ -n "$inish _script" ]; then - echo "finish script is at: $inish _script" + local finish_script + finish_script=$(command -v finish) + if [ -n "$finish_script" ]; then + echo "finish script is at: $finish_script" if [ "$1" == "-y" ]; then - rm "$inish _script" - echo "Removed: $inish _script" + rm "$finish_script" + echo "Removed: $finish_script" else read -r -p "Remove the finish script? (y/n): " confirm if [[ $confirm == "y" ]]; then - rm "$inish _script" - echo "Removed: $inish _script" + rm "$finish_script" + echo "Removed: $finish_script" fi fi fi @@ -684,11 +684,11 @@ remove_command() { check_if_enabled() { local is_enabled - is_enabled=$(complete -p | grep _inish sh | grep -cv _inish sh_cli) + is_enabled=$(complete -p | grep _finishsh | grep -cv _finishsh_cli) (( is_enabled > 0 )) && return 0 || return 1 } -_inish sh_cli() { +_finishsh_cli() { if [[ -n "${COMP_WORDS[*]}" ]]; then command="${COMP_WORDS[0]}" if [[ -n "$COMP_CWORD" && "$COMP_CWORD" -lt "${#COMP_WORDS[@]}" ]]; then @@ -720,11 +720,11 @@ model enable_command() { if check_if_enabled; then - echo_green "Reloading inish .sh..." + echo_green "Reloading finish.sh..." disable_command fi acsh_load_config - complete -D -E -F _inish sh -o nospace + complete -D -E -F _finishsh -o nospace } disable_command() { @@ -747,7 +747,7 @@ command_command() { } clear_command() { - local cache_dir=${ACSH_CACHE_DIR:-"$HOME/.inish /cache"} log_file=${ACSH_LOG_FILE:-"$HOME/.inish /inish .log"} + local cache_dir=${ACSH_CACHE_DIR:-"$HOME/.finish/cache"} log_file=${ACSH_LOG_FILE:-"$HOME/.finish/finish.log"} echo "This will clear the cache and log file." echo -e "Cache directory: \e[31m$cache_dir\e[0m" echo -e "Log file: \e[31m$log_file\e[0m" @@ -774,10 +774,10 @@ clear_command() { } usage_command() { - local log_file=${ACSH_LOG_FILE:-"$HOME/.inish /inish .log"} cache_dir=${ACSH_CACHE_DIR:-"$HOME/.inish /cache"} + local log_file=${ACSH_LOG_FILE:-"$HOME/.finish/finish.log"} cache_dir=${ACSH_CACHE_DIR:-"$HOME/.finish/cache"} local cache_size number_of_lines api_cost avg_api_cost cache_size=$(list_cache | wc -l) - echo_green "inish .sh - Usage Information" + echo_green "finish.sh - Usage Information" echo echo -n "Log file: "; echo -e "\e[90m$log_file\e[0m" if [ ! -f "$log_file" ]; then @@ -865,22 +865,22 @@ model_command() { clear local selected_model options=() if [[ $# -ne 3 ]]; then - mapfile -t sorted_keys < <(for key in "${!_inish _modellist[@]}"; do echo "$key"; done | sort) + mapfile -t sorted_keys < <(for key in "${!_finish_modellist[@]}"; do echo "$key"; done | sort) for key in "${sorted_keys[@]}"; do options+=("$key") done - echo -e "\e[1;32minish .sh - Model Configuration\e[0m" + echo -e "\e[1;32mfinish.sh - Model Configuration\e[0m" menu_selector "${options[@]}" selected_option=$? if [[ $selected_option -eq 1 ]]; then return fi selected_model="${options[selected_option]}" - selected_value="${_inish _modellist[$selected_model]}" + selected_value="${_finish_modellist[$selected_model]}" else provider="$2" model_name="$3" - selected_value="${_inish _modellist["$provider: $model_name"]}" + selected_value="${_finish_modellist["$provider: $model_name"]}" if [[ -z "$selected_value" ]]; then echo "ERROR: Invalid provider or model name." return 1 @@ -952,9 +952,9 @@ case "$1" in ;; *) if [[ -n "$1" ]]; then - echo_error "Unknown command $1 - run 'finish --help' for usage or visit https://inish .sh" + echo_error "Unknown command $1 - run 'finish --help' for usage or visit https://finish.sh" else - echo_green "inish .sh - LLM Powered Bash Completion - Version $ACSH_VERSION - https://inish .sh" + echo_green "finish.sh - LLM Powered Bash Completion - Version $ACSH_VERSION - https://finish.sh" fi ;; esac diff --git a/homebrew/finish.rb b/homebrew/finish.rb index 1faeb8b..db5ea9d 100644 --- a/homebrew/finish.rb +++ b/homebrew/finish.rb @@ -1,6 +1,6 @@ -class inish Sh < Formula +class finishSh < Formula desc "LLM-powered command-line finishtion" - homepage "https://git.appmodel.nl/Tour/inish " + homepage "https://git.appmodel.nl/Tour/finish" url "https://git.appmodel.nl/Tour/finish/archive/v0.5.0.tar.gz" sha256 "" # Update with actual SHA256 of the release tarball license "BSD-2-Clause" @@ -11,7 +11,7 @@ class inish Sh < Formula depends_on "bash-completion@2" => :optional def install - bin.install "inish .sh" => "inish " + bin.install "finish.sh" => "finish" doc.install "README.md" doc.install "LICENSE" end @@ -30,18 +30,18 @@ class inish Sh < Formula 3. Select a language model: finish model - You'll need LM-Studio or Ollama running locally to use inish .sh. + You'll need LM-Studio or Ollama running locally to use finish.sh. LM-Studio: https://lmstudio.ai Ollama: https://ollama.ai For more information, visit: - https:/git.appmodel.nl/Tour/inish + https:/git.appmodel.nl/Tour/finish EOS end test do - system "#{bin}/inish ", "--help" - assert_match "inish .sh", shell_output("#{bin}/finish --help") + system "#{bin}/finish", "--help" + assert_match "finish.sh", shell_output("#{bin}/finish --help") end end diff --git a/tests/test_finish.bats b/tests/test_finish.bats index ad2f587..64c57d2 100644 --- a/tests/test_finish.bats +++ b/tests/test_finish.bats @@ -1,7 +1,7 @@ #!/usr/bin/env bats setup() { - # Install inish .sh and run testing against the main branch + # Install finish.sh and run testing against the main branch wget -qO- https://git.appmodel.nl/Tour/finish/raw/branch/main/docs/install.sh | bash -s -- main # Source bashrc to make sure finish is available in the current session @@ -14,18 +14,18 @@ setup() { } teardown() { - # Remove inish .sh installation + # Remove finish.sh installation finish remove -y } @test "which finish returns something" { - run which inish + run which finish [ "$status" -eq 0 ] [ -n "$output" ] } -@test "finish returns a string containing inish .sh (case insensitive)" { - run inish +@test "finish returns a string containing finish.sh (case insensitive)" { + run finish [ "$status" -eq 0 ] [[ "$output" =~ [Aa]utocomplete\.sh ]] }