Skip to content
This repository has been archived by the owner on Jun 6, 2023. It is now read-only.

Latest commit

 

History

History
91 lines (61 loc) · 2.13 KB

README.md

File metadata and controls

91 lines (61 loc) · 2.13 KB

Toptout interactive --command-line

⚠ This project is discontinued because the main one has already implemented multiplatform scripting gears.

Requirements

.NET 5

Prototype

  • python 3
    • argparser
    • json
    • requests

Turn Off Telemetry

toptout-cli

Print recommends about update if it cannot find local db file toptout.json. The options list i.e. user defined options are in the options.txt

  • toptout-cli --option my-rules.txt

Update

  • toptout-cli update
  • toptout-cli force

Download .json datas from https://github.com/beatcracker/toptout/tree/master/data and consolidate it in a local db. Also creates the user-options file.

Swagger Api Provider

How to download data

toptout-cli update --provider swagger

Github Native Api Provider

https://github.com/johnydou/teleoff/tree/master/telemetry/data/json
                   ^^^^^^^^/^^^^^^^      ^^^^^^ ^^^^^^^^^/^^^^/^^^^
                   user..../repo...      branch path...../..../....

toptout-cli update --provider github --repo 'johnydou/teleoff/master' --path '/telemetry/data/json'

  • --provider github
  • --repo 'username/repository/branch'
    • --user-repo-branch 'johnydou/teleoff/main'
  • --path '/telemetry/data/json'

¿ Revert / Undo ?

  • toptout-cli -r
  • toptout-cli --revert
  • toptout-cli --undo

? Revert or undoing all changes

Print Help

  • toptout-cli -h
  • toptout-cli --help

Diagnostics

print, show, dry, list, ...

Opt-out Options

User can opts in a autogenerated file options.txt

  1. +-._ without spaces. But some symbols can appear, like parenthesis [], (), }}.
    • [+] turn tm on
    • [-] switch tm off
    • [_], [ ] , [.] do nothing or ignore. Default behavior
  2. Any spacers like space or tab
  3. Name of the module
[-] switch telemetry off
(+) turn telemetry back again
{-} name of the module
|+| name of the module 2
[.] ignore opts for module_name_3
[ ] do nothing for module_that_called_four
[_] still do nothing mod-5
... ...
[-] name of the module N