cmd

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2025 License: MIT Imports: 19 Imported by: 0

Documentation

Overview

Package cmd provides the command-line interface commands for the eph CLI tool. It includes commands for file operations, configuration management, and utility functions for interacting with the ephemeralfiles.com service.

Index

Constants

View Source
const (
	// GithubRepository is the GitHub repository identifier for self-updates.
	GithubRepository = "ephemeralfiles/eph"
	// DefaultEndpoint is the default API endpoint for ephemeralfiles.
	DefaultEndpoint = "https://api.ephemeralfiles.com"
)
View Source
const (
	// WritablePermission is the file permission used for checking write access.
	WritablePermission = 0666
)

Variables

This section is empty.

Functions

func DoUpdate

func DoUpdate(url string) error

DoUpdate updates the binary from the url.

func Execute

func Execute()

Execute runs the root command and handles any execution errors.

func GenerateBinaryURL

func GenerateBinaryURL(repository string, version string, os string, arch string) string

GenerateBinaryURL generates the download URL for a binary from GitHub releases.

func InitClient added in v0.2.0

func InitClient()

InitClient initializes the client.

func IsLastVersion

func IsLastVersion(lastVersionFromGithub string) bool

IsLastVersion checks if the actual version is the last version from github.

Types

This section is empty.

Jump to

Keyboard shortcuts

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