integration

package
v0.9.9 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package integration provides shared functionality for integrating GoPCA and GoCSV applications, including app detection and launching.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCommonPaths

func GetCommonPaths(appName string) []string

GetCommonPaths returns platform-specific common installation paths for an application

func IsAppRunning

func IsAppRunning(appName string) bool

IsAppRunning checks if an application is currently running

func LaunchWithFile

func LaunchWithFile(appPath, filePath string) error

LaunchWithFile launches an application with a file argument

Types

type AppConfig

type AppConfig struct {
	Name        string   // Application name (e.g., "gopca-desktop", "gocsv")
	CommonPaths []string // Common installation paths to check
	DisplayName string   // User-friendly name for error messages
}

AppConfig contains configuration for detecting and launching an application

type AppStatus

type AppStatus struct {
	Installed bool   `json:"installed"`
	Path      string `json:"path,omitempty"`
	Error     string `json:"error,omitempty"`
}

AppStatus represents the installation status of an external application

func CheckApp

func CheckApp(config AppConfig) *AppStatus

CheckApp checks if an application is installed on the system

Jump to

Keyboard shortcuts

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