Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bugfix(273): Teller file name inconsistencies #274

Merged
merged 2 commits into from
May 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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
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
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
Loading