Skip to content
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 files list command #119

Merged
merged 5 commits into from
Jul 2, 2024
Merged

Add files list command #119

merged 5 commits into from
Jul 2, 2024

Conversation

mhmdiaa
Copy link
Collaborator

@mhmdiaa mhmdiaa commented Jul 2, 2024

The command supports listing all files by default or using an optional --query flag for searching. Each file entry includes the file name, size, and last modified date.

trickest files list

Files
├── 📄 hostnames.txt
│   ├── 🔢 13.1MB
│   └── 📅 2024-07-01 14:29:31
├── 📄 open-ports.json
│   ├── 🔢 102.5MB
│   └── 📅 2024-07-01 16:39:31
└── 📄 web-servers.json
    ├── 🔢 308.9MB
    └── 📅 2024-07-01 18:49:31
trickest files list --query ".json"

Files
├── 📄 open-ports.json
│   ├── 🔢 102.5MB
│   └── 📅 2024-07-01 16:39:31
└── 📄 web-servers.json
    ├── 🔢 308.9MB
    └── 📅 2024-07-01 18:49:31
trickest files list --query ".json" --json | jq

[
  {
    "id": "f3094b3d-ef43-4195-8614-e160525968a6",
    "name": "open-ports.json",
    "size": 107374182,
    "pretty_size": "102.5MB",
    "modified_date": "2024-07-01T16:39:31Z"
  },
  {
    "id": "6f28ba6c-c5b0-473b-9e34-c76825419286",
    "name": "web-servers.json",
    "size": 323697680,
    "pretty_size": "308.9MB",
    "modified_date": "2024-07-01T18:49:31Z"
  }
]

@mhmdiaa mhmdiaa merged commit 515a096 into main Jul 2, 2024
@mhmdiaa mhmdiaa deleted the feat/files-list branch July 2, 2024 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant