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

Feat : Added ls() method with numbered output for files in stash directory #104

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Prakhar29Sharma
Copy link

Feat : Added ls() method with numbered output for files in stash directory

  • Have you renamed the PR Title in a meaningful way?

Related Issue

closes #99

Description

  • Implemented ls() to display files as a numbered list inside the stash directory.
  • Updated display() to call ls() when no snippet_name is passed.
  • Ensured the output format matches the requirement of numbered file listing.

Type of change

What sort of changes have you made:

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Code style update (formatting, local variables)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist

  • My code follows the code style of this project.
  • I have followed the contribution guidelines
  • I have performed a self-review of my own code.
  • I have ensured my changes don't generate any new warnings or errors.
  • I have updated the documentation (if necessary).
  • I have resolved all merge conflicts.

- Implemented ls() to display files as a numbered list inside the stash directory.
- Updated display() to call ls() when no snippet_name is passed.
- Ensured the output format matches the requirement of numbered file listing.
@Prakhar29Sharma Prakhar29Sharma linked an issue Oct 10, 2024 that may be closed by this pull request
@Wahid7852
Copy link
Collaborator

can you show me an image which verifies this PR

@Prakhar29Sharma
Copy link
Author

image

This is the output returned when I call ls() method from package/models.py

Copy link
Collaborator

@Wahid7852 Wahid7852 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks quite good to me

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.

Feature Request: Display files in stash directory
2 participants