package app

import "git.sr.ht/~jamesponddotco/bunnystorage-go/cmd/bunnystoragectl/internal/app"

Package app is the main package for the application.

Index

Constants

const (
	// ErrFileExists is the error returned when the file already exists.
	ErrFileExists xerrors.Error = "file already exists"

	// ErrUnexpectedStatusCode is the error returned when the status code is not 200.
	ErrUnexpectedStatusCode xerrors.Error = "unexpected status code"
)
const ErrFileNotFound xerrors.Error = "failed to delete file"

ErrFileNotFound is returned when the file is not found.

Functions

func DeleteAction

func DeleteAction(c *cli.Context) error

DeleteAction is the action for the delete command.

func DownloadAction

func DownloadAction(c *cli.Context) error

DownloadAction is the action for the download command.

func ListAction

func ListAction(c *cli.Context) error

ListAction is the action for the list command.

func Run

func Run() int

Run is the entry point for the application.

func UploadAction

func UploadAction(c *cli.Context) error

UploadAction is the action for the upload command.

Source Files

app.go download.go list.go remove.go upload.go

Version
v0.3.0 (latest)
Published
Jul 11, 2023
Platform
linux/amd64
Imports
11 packages
Last checked
3 days ago

Tools for package owners.