all repos

viye @ 00a2383a688723c52aac5d2bbb48753b6ae90b5a

my shot at reimplementing xiki
1 files changed, 4 insertions(+), 1 deletions(-)
add "plumbing not found" error
Author: Oleksandr Smirnov olexsmir@gmail.com
Committed at: 2026-08-22 23:53:53 +0300
Authored at: 2026-08-22 21:09:29 +0300
Change ID: rkksqrtnponpyzxyvtppkwkumpnxsoyq
Parent: d562899
M internal/viye/viye.go
···
        1
        1
         package viye

      
        2
        2
         

      
        3
        3
         import (

      
        
        4
        +	"errors"

      
        4
        5
         	"fmt"

      
        5
        6
         	"io"

      
        6
        7
         	"os"

      ···
        8
        9
         

      
        9
        10
         	"github.com/olexsmir/viye/internal/version"

      
        10
        11
         )

      
        
        12
        +

      
        
        13
        +var ErrPlumbingNotFound = errors.New("tool not found")

      
        11
        14
         

      
        12
        15
         type Context struct {

      
        13
        16
         	Path []string // ancestor chain [root, ..., target]

      ···
        96
        99
         			return tool.Execute(ctx)

      
        97
        100
         		}

      
        98
        101
         	}

      
        99
        
        -	return "", nil

      
        
        102
        +	return "", ErrPlumbingNotFound

      
        100
        103
         }

      
        101
        104
         

      
        102
        105
         // splitLeaf splits a leaf path component into command name and args.