This tool allows you to sync up your local files to Bitburner automatically without needing NodeJS or NPM installed at all.
Current automated triggers:
- On File Modify
- On File Create
- On File Delete
- The reason that I started this project is because I have gotten frustrated with the NPM package manager and how many packages it installs to use one single thing on it.
- NPM also keeps getting hacked and it doesn't seem to get better anytime soon, which simply makes it unsafe to use.
- But overall, I just like having a tool that does one single thing without requiring to install (at the time of writing) 185 dependencies...
- The only thing you are required to install is the latest release of this project.
- The only files that are required to be present on your system for this tool to work are: the executable and optionally a config file to change the default config fields.
- Because this is written in golang, the tool is way lighter for your system to run, and way faster than javascript could ever be executed. The speed at which this tool can operate is only limited to how fast bitburner is able to respond back to it.
- The executable can be anywhere you like, as long as you can execute it from the commandline to start it.
- Download the latest release file
- windows:
BitburnerGoFilesync.exe - linux:
BitburnerGoFilesync
- windows:
- Put the executable in same directory where you keep all your bitburner scripts
- Open a commandline in the directory you put the executable in
- Move on to Usage
You may skip step 2 and put the executable anywhere you like, but for the program to work you will then have to supply it with a --dir argument flag, more about that in Arguments.
Alternatively if you rather not download an executable from this repository (I would not blame you for being careful) you may also clone this repository and build it yourself.
If you do clone the project instead, you will need go installed locally on your system to run the project.
Once the executable is installed you are ready to get started with the game, the only thing you would still need to do is start the filesyncer via the commandline that you should have opened in step 3 of the installation guide.
Simply enter BitburnerGoFilesync.exe (or whatever the executable is called on your system) and pass in any arguments that you like.
This is the text that will pop up if you enter --full-help in the commandline arguments
Formatting Rules:
Each new argument always has to start with a double dash '--'.
If the argument does not start with '--' it is considered a parameter
for the most recent argument that started with '--'.
Each argument may have any number of parameters,
to check what an argument may accept or require,
you can do --help followed by the name of the argument without the '--'.
Some arguments may accept a specific amount of parameters where others accept a range.
If an argument doesnt have its required parameters, it will say so in the console,
this argument will not execute anything after that and will be ignored.
If you pass in more parameters than an argument needs, it simply ignores the overflow.
--help, --wtf:
Prints a list of arguments and their descriptions.
Follow it up with another argument (without the -- before it)
to get a more detailed explanation about that argument.
Parameters:
command:
The name (without the -- before it) of a command.
Print a detailed explanation about a specific command.
--full-help, --fhelp:
The same as --help, but it also includes all of the extra information
as if you entered --help <command> for each argument.
--dir:
Specify the directory where this tool should watch
for file changes to sync up with bitburner
Parameters:
dir:
The path to the directory where you keep your bitburner scripts.
Make sure to surround this parameter with double quotes (").
--include-ext, --ext:
Specify which file extensions the file watcher should include.
Default: js ts txt
Parameters:
extensions:
Any number of file extensions separated with spaces.
Example: js ts json
--port:
Set the port for the server to connect to.
By default, the server will try to connect to 'localhost:8080'.
Parameters:
port:
The port number.
Default: 8080
DEBUG ARGUMENTS
--test:
Runs the test function if it exists
--no-watcher:
Prevents the program from watching file events.
--no-server:
Prevents the program from creating a server and connecting to bitburner.
Parameters:
keep-alive:
Accepts: true, false
Usually when a server is ran, the program wont exit as it keeps evaluating it,
if this parameter is set to true, the program will still be prevented from exiting.