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

Revampt as dotnet-cat #127

Open
4 tasks
kzu opened this issue Oct 21, 2024 · 0 comments
Open
4 tasks

Revampt as dotnet-cat #127

kzu opened this issue Oct 21, 2024 · 0 comments

Comments

@kzu
Copy link
Member

kzu commented Oct 21, 2024

Given https://www.linfo.org/cat.html definition:

cat is one of the most frequently used commands on Unix-like operating systems. It has three related functions with regard to text files: displaying them, combining copies of them and creating new ones.

And the catbag concept, we want to:

  • Rename project to dotnet-cat
  • Revamp implementation to use Spectre.Console for better progress and overall output
  • Leverage proper globing for more precise sync
  • Add significant test coverage to improve reliability since the globing isn't trivial

Some key features:

  • Should allow flexible globing with multiple include/exclude strings, such as:
[file]
  url = https://github.com/git-ecosystem/git-credential-manager/tree/v2.6.0/src/shared/Core/Interop
  include = *.cs
  include = **/*FileSystem.cs
  exclude = **/MacOS/**/*.*
  • CLI should allow specifying this via multiple -i|--include and -e|--exclude options.
  • CLI should provide a --dry-run for all commands (including add, so you can test your include/excludes)
  • Include/exclude would only be supported initially for github tree URLs (since it requires the GH CLI to fetch the directory contents)

Back this issue
Back this issue

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

No branches or pull requests

1 participant