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 manpages #8
Add manpages #8
Conversation
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.
looks good! just a few tiny tweaks
docs/try.1.md
Outdated
|
||
# EXAMPLES | ||
|
||
TODO |
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.
I'd add a few:
- An interactive example of a command that has moderately dispersed effect. Since
apt
doesn't work yet, maybe it could be un-tar
ing a tarball with absolute paths? - A non-interactive example that uses
summary
andcommit
. Maybe somehow doing the same work. - A non-interactive example using the
-D
flag.
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.
A make; make install
could also be a potentially good candidate example (in the manpages and in general) or even a or pip install --user libdash
.
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.
By default we block network operations inside the overlay. Maybe installing a local package using the .whl
format?
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.
I think that try
by default should allow network operations (what do you think @mgree?) with a disclaimer that they will not be contained. Maybe we can add a flag.
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.
I tried to run pip install
and got a timeout. wget
and curl
didn't work too.
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.
Oh, I see. I think that this should not be the case. Could you open an issue with the examples that you run and what output you got to track the problem?
I have added some of the examples you proposed. Let me know if you would like me to add anything else :-) |
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.
Looks good other than the tiny comment I left
docs/try.1.md
Outdated
Sometimes, you might want to pre-execute a command and commit its result at a later time. | ||
|
||
``` | ||
try -D try_gunzip amendments.txt.gz |
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.
Should't this be try -D try_dir gunzip amendments.txt.gz
based on the later try summary try_dir
?
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.
This is a typo, I will fix it
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.
maybe you mean try -n gunzip amendments.txt.gz
? that allocates a fresh directory but just gives the sandbox dir when it's done
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.
Yes, makes sense. I didn't realize that -n gives you back the overlay dir
BTW, let's also add the example to the README too (once it's finalized) |
Good idea! We can mostly crib from the manpage, but it's good to have killer examples and installation instructions up front in a friendly way in the README.
…On 2023-05-30 at 02:08:42 PM, Konstantinos Kallas wrote:
BTW, let's also add the example to the README too (once it's finalized)
--
Reply to this email directly or view it on GitHub:
#8 (comment)
You are receiving this because you were mentioned.
Message ID: ***@***.***>
|
Looks good to me, just remember to document the issue that you had with
|
Also, I think it is really important to add a test with whatever functionality we have in the manpage. The manpage example should always work and tested in CI. @gliargovas once you add the test, we can very easily make it part of CI (see https://github.com/binpash/sh-expand/blob/main/.github/workflows/test.yaml). |
I will open a separate issue documenting these. |
Makes sense, I will do so right now. |
No description provided.