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

Replace meltano_tut with native invocations #3

Open
aaronsteers opened this issue Nov 30, 2022 · 2 comments
Open

Replace meltano_tut with native invocations #3

aaronsteers opened this issue Nov 30, 2022 · 2 comments

Comments

@aaronsteers
Copy link

Since we're asking the user to copy-paste one or two commands anyway, I think it would be easier to understand if we try to replace meltano_tut references with their native invocations.

meltano_tut init

echo "=== Running wrapped 'meltano init' ==="
rm meltano.yml
meltano init new_project
rm new_project/README.md
mv new_project/* .
rm new_project
mkdir data
cp codespaces_tutorial/customers.csv data/customers.csv
echo "=== Now head to the README.md and continue with step 2!"
  1. I think we can safely assume a new project - and the 'reset' functions can be moved to something like a dedicated tutorial_reset.sh.
  2. We don't need to move the csv, do we? We could start with it already in data or tutorial_data and just access it from there during the EL step.
  3. Then, the replacement could just be meltano init ..
  4. Note: the above requires: feat: Support meltano init in a non-empty directory meltano#6954
@sbalnojan
Copy link
Contributor

Just to reaffirm why 4. is necessary: because the VS Code extension otherwise won't work (right now) :-) (And I do want to change the default environment to codespaces, so we do kind of need a meltano.yml in place)

So I do think that's fine, although I also was thinking about a "tutorial" command. Some CLIs have that and it's kind of nice. I think and enables an even better workflow control.

@aaronsteers
Copy link
Author

aaronsteers commented Nov 30, 2022

I also was thinking about a "tutorial" command.

Interesting idea! Do you mind logging an issue or discussion for meltano tutorial as a top level command?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants