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

Use last initializationn script when you create a new image #634

Open
akevalion opened this issue Oct 5, 2023 · 2 comments
Open

Use last initializationn script when you create a new image #634

akevalion opened this issue Oct 5, 2023 · 2 comments

Comments

@akevalion
Copy link

When you create an image will would be nice to use the last initialization script

for example you can create a file like credentials.st

Author uniqueInstance fullName: 'YourName'.
IceCredentialStore current
	storeCredential: (IceTokenCredentials new
	username: 'YOURUSERNAME';
	token: 'YOUR_github_token';
	yourself)
	forHostname: 'github.com'.

And when you create new images you will use by default this configuration

@demarey
Copy link
Contributor

demarey commented Oct 6, 2023

Hi @akevalion

Thank you for the proposal and the PR!
Initialization script is thought to easily load your business code in a fresh Pharo image. If you work on many projects, you will have many initialization scripts: one by project. You do not always want to execute an initialization script and even less the last executed one.
Why don't you use the standard Pharo feature to rerun as script at image startup to store your credentials? Most people use this possibility to manage credentials (See Pharo System menu / Startup / Version or General preferences folder).

@akevalion
Copy link
Author

This PR will not execute the last one, but is going to select the last script you used
Yes I will check the standard Pharo feature

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

No branches or pull requests

2 participants