core

command module
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2025 License: MIT Imports: 1 Imported by: 0

README

Core

Go Version License Last Commit Go Reference

A Go CLI app to automate some personal tasks - mainly a project for learning & experimenting with Go. This is meant to be a little pocket-knife for various random tasks I'd like to run in the terminal so I don't really mind if the features are a bit bloated or unfocused. It uses Cobra & Viper for the CLI and SvelteKit for a web UI.

I'm trying to write most of the Go code myself, but in the web app some vibe-coding is allowed 😉.

Screenshot Web UI

Features

  • CLI & config management with Cobra & Viper
  • Embedded SvelteKit web UI
  • core browser command to open multiple pre-defined URLs in the default browser
  • System tray mode
  • core pick command to pick one option from multiple provided arguments
  • core journal command to add journal entries to my Obisidan vault from the CLI or web UI
  • core website command to manage & build my hugo website (WIP)

Installation

There are two ways to install this app:

  1. Pre-built binaries: Download the latest release from the Releases page
  2. Go install: If you have Go installed, you can run go install github.com/matkv/core@latest

Configuration

The app uses a configuration file located in the home directory of the user (on Linux ~/.config/core/config.yaml ) by default. If it doesn't exist yet, it will be created with default settings on the first run.

paths:
  obsidianvault: /home/matkv/documents/Obsidian Vault
device: desktop

The three supported device types are desktop, laptop and wsl.

Development

There are two different launch options:

  • Debug CLI: Starts the GO CLI app with working breakpoints. Command line arguments can be set in then launch.json file.
  • Debug web app: Starts the SvelteKit web app with working Go & Svelte breakpoints.

To make sure that changes in the web app are included in the binary when installing it with go install, the web app must be built and the changes need to be commited:

make build-web
git add web/build

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
app
ui

Jump to

Keyboard shortcuts

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