revanced-cli icon indicating copy to clipboard operation
revanced-cli copied to clipboard

feat: Interactive shell script

Open oSumAtrIX opened this issue 1 year ago • 14 comments

Feature description

Add bash and CMD scripts that simplify and automate the usage of ReVanced CLI.

Motivation

Scripts will simplify the usage and improve automation. This will be useful in environments where a short setup is necessary to use ReVanced CLI.

Acknowledgements

  • [X] This issue is not a duplicate of an existing feature request.
  • [X] I have chosen an appropriate title.
  • [X] All requested information has been provided properly.

oSumAtrIX avatar Dec 12 '23 00:12 oSumAtrIX

Yes, some ways to simplify CLI usage is definetely needed.

I'm not entirely sure why revanced-patches and revanced-integrations aren't part of the CLI package. I'd say in most use cases they're both required to patch APKs so you might as well include them automatically.

I've created my own shell script to utilize ReVanced CLI. It's available in Gist in case anyone's interested - https://gist.github.com/gim-/75481a6fb43b7f8d09aa73fd02e5fe8a

gim- avatar Dec 18 '23 10:12 gim-

ReVanced CLI is agnostic to any app and patch

oSumAtrIX avatar Dec 18 '23 10:12 oSumAtrIX

ReVanced CLI is agnostic to any app and patch

Why though? Are there any patches apart from revanced-patches available which people might be using?

gim- avatar Dec 18 '23 10:12 gim-

Because it is by design featured to supply a combination of patch bundles and patch any app

oSumAtrIX avatar Dec 18 '23 11:12 oSumAtrIX

ReVanced CLI is agnostic to any app and patch

Why though? Are there any patches apart from revanced-patches available which people might be using?

Yes, ReVanced Patches aren't the only ones supported, I can make my own if I wanted to

The reason there aren't many non-official bundles is the lack of support in ReVanced Manager, but ReVanced Manager v2 will add support for it

Ushie avatar Dec 18 '23 13:12 Ushie

https://github.com/CoolnsX/revanced-build

CoolnsX avatar Jul 28 '24 09:07 CoolnsX

https://github.com/CoolnsX/revanced-build/blob/03c5e7d53fd6cfb0ebe85b15f458404e9af62ccb/revanced#L41

Refer to https://github.com/ReVanced/revanced-cli/issues/307#issuecomment-1860103114

oSumAtrIX avatar Jul 28 '24 10:07 oSumAtrIX

Bruh it can be made into anything, I m giving something to start from

CoolnsX avatar Jul 28 '24 10:07 CoolnsX

Will little curl and some logic, u can fetch the list of apps supported by revanced-cli

CoolnsX avatar Jul 28 '24 10:07 CoolnsX

Downloading apps is no business logic ReVanced CLI is involving. The scripts are supposed to simply run common commands form ReVanced CLI and not extend it with additional features.

oSumAtrIX avatar Jul 28 '24 10:07 oSumAtrIX

In that case, make an elaborate docs

CoolnsX avatar Jul 28 '24 10:07 CoolnsX

I am already assigned to the issue. I won't waste time on writing down what I know I need to do already. Docs are present in docs/

oSumAtrIX avatar Jul 28 '24 10:07 oSumAtrIX

and it's taking this much time, when it's only 2-3 hours work max

CoolnsX avatar Jul 29 '24 04:07 CoolnsX

That doesn't matter, I work on other more important things. If you want it quicker you'll have to familiarize yourself with the designs and concepts and implement it yourself.

oSumAtrIX avatar Jul 29 '24 06:07 oSumAtrIX