func Install(c *cli.Context) error {
	if c.Args().Present() {
		_ = cli.ShowSubcommandHelp(c)
		return exit.Status(1)
	}

	s, err := ToFishCompletion(c, NoHelp())
	if err != nil {
		return err
	}
	path, err := ScriptPathname(c)
	if err != nil {
		return err
	}
	fmt.Fprintf(c.App.Writer, "install %s\n", path)
	return renameio.WriteFile(path, []byte(s), 0644)
}
// Install is the action of InstallCommand, installs the fish completion
// script.
Install is the action of InstallCommand, installs the fish completion
script.
// Install is the action of InstallCommand installs the fish completion // script .
func Install(c *cli.Context) error {
	if c.Args().Present() {
		_ = cli.ShowSubcommandHelp(c)
		return exit.Status(1)
	}
	s, err := ToFishCompletion(c, NoHelp())
	if err != nil {
		return err
	}
	path, err := ScriptPathname(c)
	if err != nil {
		return err
	}
	fmt.Fprintf(c.App.Writer, "install %s\n", path)
	return renameio.WriteFile(path, []byte(s), 0644)
}
func Install ( c * cli . Context ) error { if c . Args ( ) . Present ( ) { _ = cli . ShowSubcommandHelp ( c ) return exit . Status ( 1 ) } s , err := ToFishCompletion ( c , NoHelp ( ) ) if err != nil { return err } path , err := ScriptPathname ( c ) if err != nil { return err } fmt . Fprintf ( c . App . Writer , " \n " , path ) return renameio . WriteFile ( path , [ ] byte ( s ) , 0644 ) }
Install is the action of InstallCommand, installs the fish completion
script.
Install is the action of InstallCommand installs the fish completion script .