program

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Project

type Project struct {
	ProjectName  string
	Exit         bool
	AbsolutePath string
	LogLevel     flags.LogLevel
	DBDriver     flags.Database
	GitOptions   flags.Git
	OSCheck      map[string]bool
}

func (*Project) CreateJotlProject

func (p *Project) CreateJotlProject(currentDir string, cfg config.JotlConfig) error

CreateJotlProject sets up a new Jotl project in the current directory. It checks if the user's git email is configured, initializes a git repository if needed, creates necessary directories and files, and installs database drivers.

func (*Project) ExitCLI

func (p *Project) ExitCLI(tprogram *tea.Program)

ExitCLI checks if the Project has been exited, and closes out of the CLI if it has

Jump to

Keyboard shortcuts

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