closes #283

/claim #283

This PR implements CLI commands to list and retrieve contents of worker files, leveraging the existing REST API endpoints as requested in the bounty.

Features Added

golem-cli worker files Command

  • Purpose: List files in a worker’s file system
  • Usage: golem-cli worker files [–path ]
  • Options:
    • –path: Optional path to list files from (defaults to root /)
  • Output: Returns GetFilesResponse with detailed file metadata including names, sizes, permissions, and modification times

golem-cli worker file-contents Command

  • Purpose: Get contents of a specific file in a worker’s file system
  • Usage: golem-cli worker file-contents
  • Features:
    • Handles both UTF-8 text files and binary files gracefully
    • Outputs raw file contents directly to stdout
    • Proper error handling for missing files

Working CLI video:

https://github.com/user-attachments/assets/25631d15-60a5-40cc-9e9f-5b8cbf313f82

Claim

Total prize pool $250
Total paid $0
Status Pending
Submitted August 01, 2025
Last updated August 01, 2025

Contributors

AD

Aditya Pratap Singh

@Aditya-PS-05

100%

Sponsors

GO

Golem Cloud

@golemcloud

$250