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

asdftool edit subcommand #816

Closed
eslavich opened this issue Jun 30, 2020 · 1 comment
Closed

asdftool edit subcommand #816

eslavich opened this issue Jun 30, 2020 · 1 comment
Milestone

Comments

@eslavich
Copy link
Contributor

eslavich commented Jun 30, 2020

I think it would be useful to implement an asdftool edit CLI command. In the vein of crontab -e, the command would copy the YAML portion of the file to a temporary location, open up that temp file in EDITOR, and overwrite the tree in the original file once the user has exited the editor.

This has some advantages over the explode/edit/implode method -- it's a single command, and if the new tree fits within the space allocated to the old tree, then the file can be updated in place without copying the binary blocks or invalidating the block index.

This has been mostly implemented by #873, all we're missing is the bit that automatically launches EDITOR.

@eslavich
Copy link
Contributor Author

eslavich commented Mar 9, 2021

This has been completed by #922

@eslavich eslavich closed this as completed Mar 9, 2021
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