chubin / cheat.sheets

cheat.sh cheat sheets repository
MIT License
591 stars 210 forks source link

Fix Usage() & Possibly More... #146

Closed terminalforlife closed 3 years ago

terminalforlife commented 3 years ago

Can't believe it took me so long to realise I borked part of the Usage(). Lol

Don't merge this yet, because I'm probably going to add more, but at least this way it's easy to see what I'm up to. I'll let you know when I'm done committing. :)

BTW, @chubin, what do you think of this? Early version, but it's somewhat getting there.

terminalforlife commented 3 years ago

Okay, I'm done! Gotta sleep now. Lol

chubin commented 3 years ago

I like your cheater. It is very clean and simple, and it does the most important things. I especially like your idea to remove the comments when the syntax highlighting is used.

It is a good alternative to the shell client (cht.sh, which is available at https://cht.sh/:cht.sh).

Several minor questions:

curl cht.sh/perl/read+json

PS. And last but not least:

Have you already created the first initial cheat sheet for cheater? :)

terminalforlife commented 3 years ago

Do you support search and subqueries?

It supports highlighting, which is as close to searching as it gets, for now.

Do you support programming languages queries?

Not yet. Just to ensure I understand you correctly, what do you mean here?

I noticed the completion file in the video, do you have tab-completion support?

Yeah, BASH completion is supported.

Is it /:list-based?

I don't understand the question here.

Glad you like it. It's just the first iteration, so there's a good chance it'll get updates in the future, especially if it sees enough interest.

It is a good alternative to the shell client (cht.sh, which is available at https://cht.sh/:cht.sh).

I had no idea you had this. Is it not packaged up or anything? Just the script via the URL? If you like, I could package it up for Debian/Ubuntu, then PR it wherever you'd want it.

chubin commented 3 years ago

Not yet. Just to ensure I understand you correctly, what do you mean here?

What I mean here: you know that cheat.sh supports not only operating systems cheat sheets, but by means of its adapters it can show cheat sheets for programming languages too, basically answers for (a very broad range of) coding questions. It works like this:

If you want to know how to read yaml in python (python read yaml), you just ask:

curl cheat.sh/python/read+yaml

It fetches answers from different sources on the fly, primarily from StackOverflow in this case.

So the question was, do you wrap coding questions into cheat.sh queries too, or cheater is intentionally for command line tools cheat sheets only?

terminalforlife commented 3 years ago

That's an awesome feature of cheat.sh! Cheater, however, only handles utilities and things in, say, the 'perl' subdirectory. I had no idea cheat.sh could do so many other cool things. I wanted Cheater to strictly make use of what's in your cheat.sheets repository.

chubin commented 3 years ago

Yes, but if cheater queries the cheat.sh server for that, that means that cheater already handles such queries. What about: cheater perl read+yaml or how was the syntax exactly?