Skip to content

Commit

Permalink
Merge pull request #4 from TheRealSibasishBehera/main
Browse files Browse the repository at this point in the history
setup cobra
  • Loading branch information
hellraiser899 committed Feb 25, 2023
2 parents 9850afa + 5e13f94 commit bd57e6f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
17 changes: 17 additions & 0 deletions app/cmd/exporter.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
var rootCmd = &cobra.Command{
Use: "gowget",
Short: "gowget is a very fast cli tool to download stuff from web-services ",
Long: `A Fast and Flexible `,
Run: func(cmd *cobra.Command, args []string) {
//TODO :go-wget
//1 retrieve data from url
//2 support recursive directory
},
}

func Execute() {
if err := rootCmd.Execute(); err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
}
6 changes: 0 additions & 6 deletions cmd/exporter.go

This file was deleted.

3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ package main

import "fmt"
func main() {
fmt.Println("welcome to go-wget")
fmt.Println("welcome to go-wget")
cmd.Execute()
}

0 comments on commit bd57e6f

Please sign in to comment.