Skip to content

team-cloudchaser/mistletoe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Winter Mistletoe

🔗 A simple CLI dialer. Supports Linux, Windows and Android (Termux).

Usage

  • ./update: Updater for fetching all configurations from the master pointer. (WIP)
  • ./load: Loader of the actual dialer. Help availble with ./load help.
  • ./conf/<tId>.json: The matched dialer config file.
  • ./conf/default.json: The default dialer config when no matched dialer configs are present.
  • ./data/<tId>.tsv: The matched dialer target list.
  • ./data/default.tsv: The default dialer target list when none matched.
  • ./data/<tId>.json: The matched dialer template file.

File schema

Dialer config

{
	"run": ["binary", "arg1", "%s", "arg2"],
	"windowsPrefix": "example/windows-path",
	"linuxPrefix": "example/linux-path"
}
  • run: The command invoked after config generation is finished. The first string contains the executable file to run, while the rest denotes arguments, with %s replaced with the name of the generated config file.
  • windowsPrefix: (optional) The executable path prefix when on Windows. Delimited with forward slashes /.
  • linuxPrefix: (optional) The executable path prefix when on Linux or Android.

Target list

id	field_1	field_2
pun	chips	cheese

A TSV file with the first line denoting fields. The id field must always be present and be the first field.

Values of the rest of the fields will replace all occurances of the capitalized __FIELD_NAME__ placeholders, like when pun is selected as the target, all occurances of __FIELD_1__ will be replaced with chips, and __FIELD_2__ with cheese.

Templates

Any valid JSON config file with replaceable placeholder fields is viable.

For writing valid Xray config files, head to xtls.github.io.

About

🔗 A simple CLI dialer.

Resources

License

Stars

Watchers

Forks

Contributors

Generated from ltgcgo/shx