Skip to content

Commit

Permalink
Merge pull request #274 from stvnksslr/bugfix/273
Browse files Browse the repository at this point in the history
bugfix(273): Teller file name inconsistencies
  • Loading branch information
jondot authored May 15, 2024
2 parents 2cfe6b1 + 4d38512 commit 5d0d60a
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion teller-cli/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ pub struct NewArgs {
}

async fn load_teller(config: Option<String>) -> eyre::Result<Teller> {
let config_arg = config.unwrap_or_else(|| "teller.yml".to_string());
let config_arg = config.unwrap_or_else(|| DEFAULT_FILE_PATH.to_string());
let config_path = Path::new(&config_arg);
let teller = Teller::from_yaml(config_path).await?;
Ok(teller)
Expand Down
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 5d0d60a

Please sign in to comment.