purelovers

package module
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2022 License: MIT Imports: 11 Imported by: 0

README

purelovers

cli for purelovers.

install

$ go install github.com/bonnou-shounen/purelovers/cmd/purelovers@latest

usage

$ export PURELOVERS_LOGIN=xxxx
$ export PURELOVERS_PASSWORD=xxxx

$ purelovers dump fav casts > casts.txt
$ vim casts.txt  # edit order
$ pruelovers restore fav casts < casts.txt

$ purelvoers dump fav shops > shops.txt
# same way

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cast

type Cast struct {
	ID   int
	Name string
	Shop *Shop
}

type Client

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

func NewClient

func NewClient() *Client

func (*Client) AddFavoriteCast

func (c *Client) AddFavoriteCast(ctx context.Context, cast *Cast) error

func (*Client) AddFavoriteCasts

func (c *Client) AddFavoriteCasts(ctx context.Context, casts []*Cast) error

func (*Client) AddFavoriteShop

func (c *Client) AddFavoriteShop(ctx context.Context, shop *Shop) error

func (*Client) AddFavoriteShops

func (c *Client) AddFavoriteShops(ctx context.Context, shops []*Shop) error

func (*Client) DeleteFavoriteCast

func (c *Client) DeleteFavoriteCast(ctx context.Context, cast *Cast) error

func (*Client) DeleteFavoriteCasts

func (c *Client) DeleteFavoriteCasts(ctx context.Context, casts []*Cast) error

func (*Client) DeleteFavoriteShop

func (c *Client) DeleteFavoriteShop(ctx context.Context, shop *Shop) error

func (*Client) DeleteFavoriteShops

func (c *Client) DeleteFavoriteShops(ctx context.Context, shops []*Shop) error

func (*Client) GetFavoriteCasts

func (c *Client) GetFavoriteCasts(ctx context.Context) ([]*Cast, error)

func (*Client) GetFavoriteShops

func (c *Client) GetFavoriteShops(ctx context.Context) ([]*Shop, error)

func (*Client) Login

func (c *Client) Login(ctx context.Context, id, password string) error

type Shop

type Shop struct {
	ID   int
	Name string
}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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