commands

package
v0.0.0-...-6d7107a Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CommandLike = cli.Command{
		Name:        "like",
		Aliases:     []string{"li"},
		Usage:       "Like all or given posts of an user",
		Description: "Like all or given posts of an user",
		ArgsUsage:   "[GLOBAL ARGUMENTS]",

		Flags: []cli.Flag{
			cli.StringFlag{
				Name:  user,
				Usage: "username of the user profile, whose posts to be liked (Ex: bharath.shetty__)",
			},
		},
		Action: likePosts,
	}
)

Define all login related commands here

View Source
var (
	CommandLogin = cli.Command{
		Name:        "login",
		Aliases:     []string{"l"},
		Usage:       "login to your instagram account by providing username and password",
		Description: "login to your instagram account by providing username and password",
		ArgsUsage:   "[GLOBAL ARGUMENTS]",

		Flags: []cli.Flag{
			cli.StringFlag{
				Name:  username,
				Usage: "Username of the Instagram Account",
			},
			cli.StringFlag{
				Name:  password,
				Usage: "Password of the Instagram Account",
			},
		},
		Action: loginInstagram,
	}
)

Define all login related commands here

View Source
var (
	CommandStartServer = cli.Command{
		Name:        "server",
		Aliases:     []string{"s"},
		Description: "start a server to do RESTful calls",
		ArgsUsage:   "[GLOBAL ARGUMENTS]",

		Subcommands: []cli.Command{
			{
				Name:        "start",
				Description: "start a server to do RESTful calls",
				Flags: []cli.Flag{
					cli.StringFlag{
						Name:  "port",
						Usage: "port on which the server should run(default port is 5555)",
					},
				},
				Action: startServer,
			},
			{
				Name:        "apilist",
				Description: "Lists all the API's available	",
				Action:      apiList,
				ArgsUsage:   "[GLOBAL ARGUMENTS]",
			},
		},
	}
)

Define all server related commands here

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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