files

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: May 23, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const CODERUNNER_DIR = ".coderunner"

Variables

This section is empty.

Functions

func AddDirToGitignore added in v0.1.3

func AddDirToGitignore(dir string) error

func CopyFile

func CopyFile(sourceFilePath, targetFilePath string) error

func DeleteFile

func DeleteFile(filePath string) error

func EnsureDirectoryExists

func EnsureDirectoryExists(dirName string) error

func GetCommitFilePath

func GetCommitFilePath(fileName, fileExtension string) (string, error)

func GetScopeFilePath

func GetScopeFilePath(scope string) (string, error)

func GetScopeSelectorFilePath added in v0.2.0

func GetScopeSelectorFilePath() (string, error)

func Init added in v0.1.3

func Init() error

func IsBinaryFile

func IsBinaryFile(content []byte) bool

IsBinaryFile uses Git's approach to detect binary files It looks for null bytes in the first 8000 bytes of the file

func OpenFile

func OpenFile(filePath, editor string) error

OpenFile opens the specified file with the system's default text editor

Types

This section is empty.

Jump to

Keyboard shortcuts

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