add

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package add implements the ctx remind add subcommand.

It creates a new reminder with optional deferred scheduling via the --after flag.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cmd

func Cmd() *cobra.Command

Cmd returns the remind add subcommand.

Returns:

  • *cobra.Command: Configured add subcommand

func Run

func Run(cmd *cobra.Command, message, after string) error

Run creates a new reminder and prints confirmation.

Exported for reuse by the parent command's default action.

Parameters:

  • cmd: Cobra command for output
  • message: Reminder text
  • after: Optional date gate in YYYY-MM-DD format (empty string to skip)

Returns:

  • error: Non-nil on read/write failure or invalid date

Types

This section is empty.

Jump to

Keyboard shortcuts

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