Conversation
hacktobeer
approved these changes
Mar 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Added file and folder management subcommands to the CLI, implemented chunked uploads with progress tracking, and refactored internal folder service methods for naming consistency.
Technical Details:
filesandfolderssubcommands into the root command incmd/openrelik/internal/cli/cli.go. AddedSilenceErrors: trueto the root configuration to manage error output through the command's return values.list,info,download, anduploadfunctionality infiles.go. The upload implementation supports chunked transfers (default 4MB) and progress reporting, while the download logic includes an interactive overwrite confirmation and directory-aware path resolution.listandcreatesubcommands infolders.go. These support both root-level operations and subfolder management via parent ID flags.ProgressTrackerandProgressReaderininternal/util/util.go. This provides real-time CLI feedback including a progress bar, transfer speed, ETA calculation, and retry counts for I/O operations.FoldersServiceto better align with standard naming conventions:GetRootFolderstoListRootFoldersGetSubFolderstoListSubFoldersGetFilestoListFilesFprintStructin the utility package to support slices and pointers, allowing the CLI to print multiple records separated by delimiters.files_test.goandfolders_test.gocovering command execution, API interaction, and file system side effects.