diff --git a/.gitignore b/.gitignore index 52dd8b2..4c39edf 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -# Generated by ignr-cli: github.com/onyx-and-iris/ignr-cli +# Generated by ignr: github.com/onyx-and-iris/ignr ## Go ## # If you prefer the allow list template instead of the deny list, see community template: @@ -36,4 +36,4 @@ go.work.sum # .idea/ # .vscode/ -# End of ignr-cli +# End of ignr diff --git a/main.go b/main.go index de30dc9..6fbb146 100644 --- a/main.go +++ b/main.go @@ -18,9 +18,9 @@ var version string // Version of the CLI, set during build time // rootCmd represents the base command when called without any subcommands. var rootCmd = &cobra.Command{ - Use: "ignr-cli", + Use: "ignr", Short: "A command-line interface for generating .gitignore files", - Long: `ignr-cli is a command-line interface for generating .gitignore files. + Long: `ignr is a command-line interface for generating .gitignore files. It allows users to easily create and manage .gitignore files for various programming languages and frameworks. You may also list available templates and generate .gitignore files based on those templates.`, SilenceUsage: true, @@ -43,7 +43,7 @@ You may also list available templates and generate .gitignore files based on tho } version = strings.Split(info.Main.Version, "-")[0] } - fmt.Printf("ignr-cli version: %s\n", version) + fmt.Printf("ignr version: %s\n", version) return nil } diff --git a/new.go b/new.go index d5f0984..fe4f1b8 100644 --- a/new.go +++ b/new.go @@ -97,7 +97,7 @@ func runPrompt(client *github.Client, height int) (*github.Gitignore, error) { // commitGitignore writes the content of the selected gitignore template to the .gitignore file. func commitGitignore(content *github.Gitignore, w io.Writer) error { - if _, err := fmt.Fprintf(w, "# Generated by ignr-cli: github.com/onyx-and-iris/ignr-cli\n\n## %s ##\n", content.GetName()); err != nil { + if _, err := fmt.Fprintf(w, "# Generated by ignr: github.com/onyx-and-iris/ignr\n\n## %s ##\n", content.GetName()); err != nil { return fmt.Errorf("error writing header to file '%s': %w", gitignoreFileName, err) } @@ -105,7 +105,7 @@ func commitGitignore(content *github.Gitignore, w io.Writer) error { return fmt.Errorf("error writing to file '%s': %w", gitignoreFileName, err) } - if _, err := fmt.Fprintf(w, "\n# End of ignr-cli\n"); err != nil { + if _, err := fmt.Fprintf(w, "\n# End of ignr\n"); err != nil { return fmt.Errorf("error writing footer to file '%s': %w", gitignoreFileName, err) }