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

Easily opt-out from telemetry collection --through interactive -command-line

License

Notifications You must be signed in to change notification settings

nikvoronin/toptout-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Easily opt-out from telemetry collection --through interactive -command-line

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages