cmd

package
v0.0.0-...-457f7c9 Latest Latest
Warning

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

Go to latest
Published: May 30, 2018 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "maktabah",
	Short: "Maktabah is a command line tool for Shamela Books",
	Long: `A robust tool that allows you to search, download, and manage shamela books. 

For more information see https://github.com/shaybix/maktabah-cli`,
	Run: func(cmd *cobra.Command, args []string) {
		cmd.Println(cmd.UsageString())
	},
}

RootCmd is the root command representing when maktabah cli is run

Functions

func Execute

func Execute()

Execute executes the rootCmd

Types

type Author

type Author struct {
	// contains filtered or unexported fields
}

Author represents the author of books on shamela

type Book

type Book struct {
	Name      string
	URL       []byte
	Size      int
	Type      string
	Directory string
}

Book represents the book being downloaded

type Books

type Books struct {
	Books []Book
}

Books ...

type Job

type Job struct {
	// contains filtered or unexported fields
}

Job represents a job that gets

type Worker

type Worker struct {
	// contains filtered or unexported fields
}

Worker is dispatched in its own goroutine

Jump to

Keyboard shortcuts

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