chubin / chubin/cheat.sh

[CLI] stealth mode not compatible with MacOS

Open
#109 6 comments 0 reactions 0 assignees View on GitHub
waiting-for-feedback
Dominant language
Python
Stars
41.7k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

When you try to use stealth mode on a Mac, the dependency on `xsel` is not met:

```
$ cht.sh --shell python
DEPENDENCY: please install "xsel" for "copy"
type 'help' for the cht.sh shell help
```

`xsel` is not available on MacOS and even if, it wouldn't do what's needed.
Likely it's `pbcopy/pbpaste` which should be used instead.

Contributor guide

Open the contributing guide

Research direction

Start with the code path exercised by `cht.sh --shell python` and locate where stealth mode checks for `xsel` and performs copy or paste. Compare the existing behavior with macOS `pbcopy` and `pbpaste`; done means stealth mode no longer reports the missing `xsel` dependency on MacOS and copy/paste works there.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos, python
Domain
cli, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.