Skip to content

Commit

Permalink
testfix(naming): made the naming and configs more consistent, if a co…
Browse files Browse the repository at this point in the history
…nfig is specificed it should use that name, if no name is specificed it should use the defaults
  • Loading branch information
stvnksslr committed May 14, 2024
1 parent c7d8fb5 commit 4d38512
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 6 additions & 6 deletions teller-cli/tests/cmd/export.trycmd
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
```console
$ teller -c teller.yml export yaml
$ teller export yaml
FOO_BAR: foo
FOO_BAZ: baz
PRINT_MOOD: happy
PRINT_NAME: linus


$ teller -c teller.yml export csv
$ teller export csv
FOO_BAR,foo
PRINT_NAME,linus
FOO_BAZ,baz
PRINT_MOOD,happy


$ teller -c teller.yml export json
$ teller export json
{"FOO_BAR":"foo","FOO_BAZ":"baz","PRINT_MOOD":"happy","PRINT_NAME":"linus"}

$ teller -c teller.yml export env
$ teller export env
FOO_BAR=foo
PRINT_NAME=linus
FOO_BAZ=baz
PRINT_MOOD=happy


$ teller -c teller.yml sh
$ teller sh
#!/bin/sh
export FOO_BAR='foo'
export PRINT_NAME='linus'
export FOO_BAZ='baz'
export PRINT_MOOD='happy'


$ teller -c teller.yml env
$ teller env
FOO_BAR=foo
PRINT_NAME=linus
FOO_BAZ=baz
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion teller-cli/tests/cmd/run.trycmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
```console
$ teller -c teller.yml run --reset --shell -- node index.js
$ teller run --reset --shell -- node index.js
hello from nodejs
linus
happy
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions teller-cli/tests/cmd/scan.trycmd
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
```console
$ teller -c teller.yml scan
$ teller scan
scanning for 4 item(s) in .
2:9 ./one.env fo*** dotenv one.env
2:9 ./two.env ba*** dotenv two.env
1:12 ./two.env ha*** dotenv two.env
1:12 ./one.env li*** dotenv one.env
found 4 result(s)

$ teller -c teller.yml scan -a
$ teller scan -a
scanning for 4 item(s) in .
2:9 ./one.env fo*** dotenv one.env
2:9 ./two.env ba*** dotenv two.env
Expand All @@ -16,7 +16,7 @@ scanning for 4 item(s) in .
1:12 ./one.env li*** dotenv one.env
found 5 result(s)

$ teller -c teller.yml scan -b
$ teller scan -b
scanning for 4 item(s) in .
2:9 ./one.env fo*** dotenv one.env
2:9 ./two.env ba*** dotenv two.env
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion teller-cli/tests/cmd/template.trycmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
```console
$ teller -c teller.yml template --in config-templ.t
$ teller template --in config-templ.t
production_var: linus
production_mood: happy

Expand Down

0 comments on commit 4d38512

Please sign in to comment.