bredit

command module
v0.0.0-...-8330ed4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2019 License: GPL-2.0 Imports: 9 Imported by: 0

README

bredit

bredit stands for: Bencode Replacer and EDITor - which is written in the Go language.

It's released under GPLv2 license and therefor is free software.

bredit is used to edit and replace data that utilizes the bencode format such as torrent & rtorrent files. It's designed to edit files in bulk but you can manually edit a file if needed.

Currently bredit only supports CLI but is planned to support editing via GUI.

Features not yet Added:

  • GUI
  • "Repair feature" (Essentially allowing the user to add custom path to empty fields within encode files)

Installation

From Binary

There is no installation required since the software is compiled with static.

Compile source

⚠Some if not all of this might change in the future with a simple Makefile.⚠

Make sure to install zeebo's encode library:

go get github.com/zeebo/bencode

If you're going to compiling statically, make sure libgo-static and glibc-static is installed (name may vary)

To compile it yourself you'll need to make sure that at least $GOOS and $GOARCH is set:

  • $GOOS
    • Underlying OS (Linux, Mac OS X, Windows, BSD, ...)
  • $GOARCH
    • Which computer architecture you're using (arm, x64, i386)
  • $GOPATH - Not needed but recommended
    • The path to the go project

you can either use gc (golang default) or gccgo.

With gc it's simply: If you have set $GOPATH :

go build bredit

Without $GOPATH:

cd /bredit/; go build *

With gccgo it's (static):

go build -compiler gccgo -gccgoflags '-static -O3' main.go fileIO.go bencode.go

Usage

Please refer to the Wiki


There are some limitations currently when using bredit in CLI mode.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL