This repository was archived by the owner on Aug 15, 2025. It is now read-only.
CLI worker commands for files and file-contents #303
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
/closes golemcloud/golem#1922
/claim golemcloud/golem#1922
Video Link for usage Link
Add two new cli commands to worker, files and file-contents. These changes are independant of the PR in golem.
files
Arguments
<WORKER_NAME>and[PATH] - Path to the directory to list files from [default: /]Example (Success)
Example[Failure]
file-contents
Arguments
<WORKER_NAME>and<PATH>, optional--output, to specific output location and nameExample [Success]
golem-dev worker file-contents test:sc/test /in/baz.txt --output test.txt Selected profile: local Fuzzy matched pattern test:sc as test:sc Downloading file from worker test:sc/test at path /in/ File Saved to path test.txtExample [Failure]
golem-dev worker file-contents test:sc/test /in/ Selected profile: local Fuzzy matched pattern test:sc as test:sc Downloading file from worker test:sc/test at path /in/ Failed to download file from worker test:sc/test at path /in/: Worker Service - Error: 400 Bad Request, Bad file type: /in error: Worker Service - Error: 400 Bad Request, Bad file type: /in