Skip to content

feat: Add some commands for object storage #47

@freedom3219

Description

@freedom3219

Description

Expand Storify's command similar to HDFS file viewing commands.

Support Commands

  • Grep (grep): Search for patterns in path
    • storify grep -R "pattern" path/
  • Find (find): Find for patterns in path
    • storify find path/
  • Tree (tree): View directory structure
    • storify tree path/
  • Diff (diff): View the differences between the two files
    • storify diff file1 file2
  • Touch (touch): Create a new file
    • storify touch path/newfile
  • Truncate (truncate): Truncate the file
    • storify truncate path/file
  • Append (append): Append the file
    • storify append path/file

Implementation Notes

  • All operations should work across OSS, S3, MinIO, and filesystem providers
  • Maintain existing code structure and error handling patterns
  • Support both line-based and byte-based operations
  • Add appropriate CLI arguments and help text
  • Implement proper error handling for non-existent files and permission issues

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions