Skip to content

Commit

Permalink
update example
Browse files Browse the repository at this point in the history
  • Loading branch information
jippi committed Feb 13, 2024
1 parent 23a877c commit 5109090
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
touch .env

# Create a key/pair value
dottie set my_key value
dottie set my_key=value

# Create another key (PORT) with value "3306"
# * One comment
Expand All @@ -34,7 +34,7 @@ dottie set \
--comment 'A port for some service' \
--comment '@dottie/validate number' \
--quote-style none \
PORT 3306
PORT=3306

# Check validation (success)
dottie validate
Expand All @@ -47,13 +47,13 @@ dottie print --pretty

# Change the "PORT" value to a "test" (a non-number).
# NOTE: the comments are kept in the file, even if they are omitted here
dottie set PORT test
dottie set PORT=test

# Test validation again (it now fails)
dottie validate

# Fix the port value
dottie set PORT 3306
dottie set PORT=3306

# Create a new key/value pair in a group named "database"
# NOTE: the group will be created on-demand if it does not exists
Expand Down

0 comments on commit 5109090

Please sign in to comment.