github.com/taubyte/tau-cli@v0.1.13-0.20240326000942-487f0d57edfc/i18n/website/success.go (about) 1 package websiteI18n 2 3 import ( 4 "fmt" 5 6 "github.com/taubyte/tau-cli/i18n/printer" 7 ) 8 9 func success(prefix, name string) { 10 printer.SuccessWithName("%s website: %s", prefix, name) 11 } 12 13 func Created(name string) { 14 success("Created", name) 15 } 16 17 func Deleted(name string) { 18 success("Deleted", name) 19 } 20 21 func Edited(name string) { 22 success("Edited", name) 23 } 24 25 func Registered(url string) { 26 printer.SuccessWithName("%s repository: %s", "Registered", url) 27 } 28 29 // Do not implement, this is already verbose from gosimplegit 30 // func Cloned(url string) { 31 // printer.SuccessWithName("%s repository: %s", "Cloned", url) 32 // } 33 34 func Pulled(url string) { 35 printer.SuccessWithName("%s repository: %s", "Pulled", url) 36 } 37 38 func Pushed(url string, commitMessage string) { 39 printer.SuccessWithName("%s repository: %s", fmt.Sprintf("Pushed: `%s` to", commitMessage), url) 40 } 41 42 func CheckedOut(url string, branch string) { 43 printer.SuccessWithName("%s repository: %s", fmt.Sprintf("Checked out `%s` on", branch), url) 44 }