Skip to content
This repository was archived by the owner on May 14, 2025. It is now read-only.
This repository was archived by the owner on May 14, 2025. It is now read-only.

command add should not override content #188

@jvalkeal

Description

@jvalkeal

We should simply fail if .spring/commands/hello/new exists.

15:02 $ spring command new
Created user defined command: /home/jvalkealahti/repos/jvalkeal/spring-cli/dogfood/.spring/commands/hello/new

15:02 $ ls -lt .spring/commands/hello/new
total 8
-rw-rw-r-- 1 jvalkealahti jvalkealahti 231 Apr 26 15:02 command.yaml
-rw-rw-r-- 1 jvalkealahti jvalkealahti  90 Apr 26 15:02 hello.yaml

15:03 $ spring command new
Created user defined command: /home/jvalkealahti/repos/jvalkeal/spring-cli/dogfood/.spring/commands/hello/new

15:03 $ ls -lt .spring/commands/hello/new
total 8
-rw-rw-r-- 1 jvalkealahti jvalkealahti 231 Apr 26 15:03 command.yaml
-rw-rw-r-- 1 jvalkealahti jvalkealahti  90 Apr 26 15:03 hello.yaml

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions