commands

package
v0.0.0-...-8436573 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 9, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCommand = &cobra.Command{
	Use:   "fitty",
	Args:  cobra.ExactArgs(0),
	Short: "Interract with file system on all oses with the same commands",
	Long: `

    ____    _    __    __
   / __/   (_)  / /_  / /_   __  __
  / /_    / /  / __/ / __/  / / / /
 / __/   / /  / /_  / /_   / /_/ /
/_/     /_/   \__/  \__/   \__, /
                          /____/



Fitty the cross platform file system utility
Version: 0.0.1
	`,
	SilenceErrors: true,
	SilenceUsage:  true,
	Example:       "$ fitty ls",
	Run: func(cmd *cobra.Command, args []string) {

		err := cmd.Help()

		if err != nil {
			fmt.Println("Failed to display help ", err, 1)
		}
		os.Exit(0)
	},
}

RootCommand root command

Functions

func Execute

func Execute()

Execute initialized cli

func VersionCMD

func VersionCMD(in string) *cobra.Command

VersionCMD cmd to check the version of the app

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL