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

it would be nice to have an explain option for --shell commands #69

Closed
go-dockly opened this issue Mar 14, 2023 · 0 comments · Fixed by #70
Closed

it would be nice to have an explain option for --shell commands #69

go-dockly opened this issue Mar 14, 2023 · 0 comments · Fixed by #70
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@go-dockly
Copy link

go-dockly commented Mar 14, 2023

expose an explain option for shell commands eg

sgpt --shell --explain "find all files that have been changed in the last 3 days from the current directory and subdirectories, with details"

Command: find . -type f -mtime -3 -ls

Description: This command will search the current directory and all subdirectories for files that have been modified in the last 3 days. The -type f option specifies that only files should be searched, the -mtime -3 option specifies that only files modified in the last 3 days should be searched, and the -ls option provides detailed information about the files found.

alternatively playing with the prompt for a bit

➜  ~ sgpt --shell "find all files that have been changed in the last 3 days from the current directory, with details. Provide a detailed explanation of the command"
find . -type f -mtime -3 -ls

- `find` is a command used to search for files and directories in a specified location.
- `.` specifies the current directory as the starting point for the search.
- `-type f` specifies that only files should be included in the search, not directories.
- `-mtime -3` specifies that the search should include only files that have been modified within the last 3 days.
- `-ls` specifies that the output should include detailed information about each file found, including its permissions, owner, size, and modification date.
@TheR1D TheR1D linked a pull request Mar 15, 2023 that will close this issue
@TheR1D TheR1D self-assigned this Mar 15, 2023
@TheR1D TheR1D added the documentation Improvements or additions to documentation label Mar 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants