all repos

viye @ 1e27f37

my shot at reimplementing xiki
1 files changed, 7 insertions(+), 3 deletions(-)
--version -> version
Author: Oleksandr Smirnov olexsmir@gmail.com
Committed at: 2026-07-30 23:38:41 +0300
Authored at: 2026-07-30 22:50:59 +0300
Change ID: xquvyklnrnwsnkxkpltwoopukxoqrqus
Parent: f72d2a3
M internal/viye/viye.go
···
        47
        47
         	if args[1] == "help" {

      
        48
        48
         		return v.showHelp(out)

      
        49
        49
         	}

      
        50
        
        -	if args[1] == "--version" {

      
        51
        
        -		fmt.Fprint(out, "| viye version: "+version.Version)

      
        52
        
        -		return nil

      
        
        50
        +	if args[1] == "version" {

      
        
        51
        +		return v.showVersion(out)

      
        53
        52
         	}

      
        54
        53
         

      
        55
        54
         	path, body := splitArgs(args[1:])

      ···
        78
        77
         	for _, tool := range v.tools {

      
        79
        78
         		fmt.Fprintf(out, "- %s\n", tool.Name())

      
        80
        79
         	}

      
        
        80
        +	return nil

      
        
        81
        +}

      
        
        82
        +

      
        
        83
        +func (v *Viye) showVersion(out io.Writer) error {

      
        
        84
        +	fmt.Fprint(out, "| viye version: "+version.Version)

      
        81
        85
         	return nil

      
        82
        86
         }

      
        83
        87