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

feat: Auto Import and Run Configuration Dot File #98

Open
mcmah309 opened this issue Jun 30, 2024 · 4 comments
Open

feat: Auto Import and Run Configuration Dot File #98

mcmah309 opened this issue Jun 30, 2024 · 4 comments

Comments

@mcmah309
Copy link

Hello fzyzcjy 👋

Is your feature request related to a problem? Please describe.

Almost always when I open a repl I will reach for two packages:

This becomes tedious

Describe the solution you'd like

It would a huge time saver if dart_interactive read from a dot file, maybe even a configuration.toml, where I can specify packages to include (e.g. sheller: ^0.5.6) and commands to run import 'dart:io'; import 'package:sheller/sync.dart'; at the start of each repl session.

Copy link

welcome bot commented Jun 30, 2024

Hi! Thanks for opening your first issue here! 😄

@fzyzcjy
Copy link
Owner

fzyzcjy commented Jun 30, 2024

That looks reasonable!

For simplicity, the first version may be as simple as

prelude: |-
  !dart pub add sheller
  import 'dart:io'; import 'package:sheller/sync.dart';

And the implementation is as simple as "execute line-by-line as-is".

Only a nit: To make it consistent with flutter ecosystem, maybe it is named dart_interactive.yaml.

Feel free to PR for this! I may not have enough time to implement this recently, but is happy to review/merge PRs.

Copy link

stale bot commented Aug 31, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Aug 31, 2024
@stale stale bot closed this as completed Sep 7, 2024
@mcmah309
Copy link
Author

mcmah309 commented Sep 7, 2024

Not sure why this was closed

@fzyzcjy fzyzcjy reopened this Sep 8, 2024
@stale stale bot removed the wontfix This will not be worked on label Sep 8, 2024
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