Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nikvoronin/toptout-cli

Easily opt-out from telemetry collection --through interactive -command-line
https://github.com/nikvoronin/toptout-cli

Last synced: about 2 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# [Toptout](https://github.com/beatcracker/toptout) interactive --command-line

>⚠ This project is discontinued because [the main one](https://github.com/beatcracker/toptout) 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](#opt-out-options)

- 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

```text
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

```plain
[-] 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
```