#!/bin/bash
# act secret add wrapper
# Args: name value
NAME="$1"
VALUE="$2"

if [ -z "$NAME" ] || [ -z "$VALUE" ]; then
    echo "Usage: act-secret-add <name> <value>"
    exit 1
fi

# Add to ~/.actrc (create if doesn't exist)
ACTRC="${HOME}/.actrc"
echo "-s $NAME=$VALUE" >> "$ACTRC"
echo "Added secret '$NAME' to $ACTRC"
echo "Current secrets:"
cat "$ACTRC"