-
Notifications
You must be signed in to change notification settings - Fork 19
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
Add CLI API #3
Add CLI API #3
Conversation
To test the cli, run this at the project where you |
Wow!! |
We could use https://github.com/Roger-luo/Comonicon.jl if it's useful |
src/WebAPI.jl
Outdated
|
||
function path_hash(path) | ||
myhash(open(f -> read(f, String), path)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
myhash(read(path))
- Respect options when they exist at `reporoot/pluto-deployment-environment/PlutoDeployment.toml` - Export - Write index file - Respect configuration 'don't run'
src/WebAPI.jl
Outdated
@info "Bond connections" showall(collect(bond_connections)) | ||
session = RunningNotebookSession(; | ||
path=path, | ||
hash=path_hash(path), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bug!
return HTTP.Response(501, "Can't pull") | ||
end | ||
start_dir = "$this_folder/$folder" | ||
settings, pluto_options = get_configuration("$this_folder/$folder/pluto-deployment-environment/PlutoDeployment.toml") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if that is different, restart
write a file (.env~!!!~~~) that the process will find after boot
and run shutdown()
CLI API:
(Web API coming soon!)