~arcade/nebula

3110a3e3b26ddaff2ffee5723401983899b93084 — Arcade Wise 5 months ago e71d5dd
Add edit to carina
2 files changed, 10 insertions(+), 2 deletions(-)

M software/carina/carina
M software/carina/carina_completions.fish
M software/carina/carina => software/carina/carina +8 -1
@@ 55,6 55,10 @@ check() {
    cd $currentDir
}

edit() {
    $EDITOR "~/projects/nebula/site/content/$1.md"
}

# Main CLI operation
case $1 in 
    create)


@@ 66,7 70,10 @@ case $1 in
    publish)
        publish
    ;;
    edit)
        edit $2
    ;;
    *)
        echo "Usage: carina (create | check | publish)"
        echo "Usage: carina (create | check | publish | edit)"
    ;;
esac
\ No newline at end of file

M software/carina/carina_completions.fish => software/carina/carina_completions.fish +2 -1
@@ 4,4 4,5 @@ complete -c carina -f

complete -c carina -a create -r -d "Create a new file with a basic template"
complete -c carina -a check -f -d "Check for errors"
complete -c carina -a publish -f -d "Publish the content via git"
\ No newline at end of file
complete -c carina -a publish -f -d "Publish the content via git"
complete -c carina -a edit -f -d "Edit an existing post"
\ No newline at end of file