liquidweb/liquidweb-cli

Use filepath.Base(os.Args[0]) to get cleaner output

Opened this issue · 0 comments

thinking maybe would be more useful if you changed the output of the create Check status with 'cloud server status --uniq_id 2HUSP1' to Check status with 'liquidweb-cli cloud server status --uniq_id 2HUSP1' so you can just copy paste assuming the cli is in your path. or like remove the '' from the output to get a cleaner oneliner you can just copy

ssullivan 1:03 PM
or make it print filepath.Base(os.Args[0]) perhaps in place (edited)

ssullivan 1:04 PM
package main
import (
"fmt"
"os"
"path/filepath"
)
func main() {
fmt.Println(filepath.Base(os.Args[0]))
}