A cross platform single binary tool to work with draw io files

SNIPO

SNIPIO is a cross platform single binary tool to work with draw io files

With snipio you can do the following operations:

  • list all layers in a drawing
  • delete a layer from a drawing
  • export a layer from a drawing
  • unpack a mxfile
  • classify a drawing as draft

How to use it

snipio show layers will show all available layers in a drawio document. It requires you to specify the document file with the parameter -f or --file.

Example: snipio show layers -f mydrawiofile.xml

snipio delete layer will delete a layer from the draw.io document. it requires the input file with the parameter -f or --file. Also the name of the layer has to be provided via the flag -n or --name. Optionally you can specify the output file with the flag -o or --output. If no output file is provided the results will be written to a file named export.xml.

Example: snipio delete layer -f mydrawiofile.xml -n layer1 -o precessedfile.xml

snipio export layer will export the selected layer from the draw.io document to a new file. It requires the input file with the parameter -f or --file. Also the name of the layer has to be provided via the flag -n or --name. Optionally you can specify the output file with the flag -o or --output. If no output file is provided the results will be written to a file named export.xml.

Example: snipio export layer -n mydrawiofile.xml -n layer1 -o precessedfile.xml

snipio unpack will convert a mxfile to a xml file. It requires the input file with the parameter -f or --file. Optionally you can specify the output file with the flag -o or --output. If no output file is provided the results will be written to the console.

Example: snipio unpack -f myMxFile.xml

snipio classify draft will add a layer on top of the document with a draft watermark. It requires the input file with the parameter -f or --file. Optionally you can specify the output file with the flag -o or --output. If no output file is provided the results will be written into a file named export.xml.

Example: snipio classify draft -f mydrawiofile.xm

Installation

Right now there are no pre-builds to download. Might come in the future.

  • Please install the go programming language. Follow the instructions at https://go.dev/.
  • Clone the repo
  • run go install in the directory of the repo. That's it.
  • you could also use go run main.go to run it. Or go build main.go to build a binary for yourself.

That's it! Have fun.

Owner
Felix Becker
ux, web application, golang, fsharp, dotnet, nodes.js, distributed systems, functional stuff
Felix Becker
Similar Resources

goof is a woof written in go - share files via a simple httpd

#goof - share files through HTTP protocol goof (Go Offer One File) is a very simple tool to send and receive files on your local LAN. Features include

Oct 4, 2022

Handles file uploads & organises files based on your database entities.

Handles file uploads & organises files based on your database entities.

Nov 22, 2022

Server and bookmarklet to download files via youtube-dl directly from your browser

Server and bookmarklet to download files via youtube-dl directly from your browser

gropple A web service and bookmarklet to download videos with a single click. Pre-requisites a passing familiarity with the command line youtube-dl (p

Nov 12, 2022

An application for generating Microsoft Word resumes from JSON Resume data files

ResumeFodder NOTE: Primary development has moved over to GitLab: https://github.com/andrzejressel/ResumeFodder. If you're reading this on GitHub, then

Nov 25, 2021

Store files in Telegram messages for free and access them from a modern Web UI

Telegram Storage Store files in Telegram messages for free and access them in a nice web UI. Telegram allows to store files (of max 2GB each) for a un

Jan 4, 2023

sigurlx a web application attack surface mapping tool.

sigurlx a web application attack surface mapping tool, it does ...:

Jul 24, 2021

The cider is a simple tool of building GitHub pages. It's fast and easy to use.

The cider is a simple tool of building GitHub pages. It's fast and easy to use.

The cider is a simple tool of building GitHub pages. It's fast and easy to use. See example: https://www.leyafo.com Install Compiling from source code

Feb 13, 2022

urlhunter is a recon tool that allows searching on URLs that are exposed via shortener services such as bit.ly and goo.gl.

urlhunter is a recon tool that allows searching on URLs that are exposed via shortener services such as bit.ly and goo.gl.

a recon tool that allows searching on URLs that are exposed via shortener services

Jan 7, 2023

Analytics box a simple and privacy focused analytics tool written in go like google analytics

Analytics box a simple and privacy focused analytics tool written in go like google analytics

Analytics box is analytics tool like google analytics but instead of ripping user's privacy off them like google it respects their privacy and doesn't collect any unnecessary information.

Nov 27, 2022
A quick and easy password protected web server for your files. httpfolder makes downloading/uploading files from your current working directory easy, even for fairly large files.

httpfolder A quick and easy password protected web server for your files. httpfolder makes downloading/uploading files from your current working direc

Sep 12, 2022
A web application example to work with a customer object

Wallester Task This repository contains a web application example to work with a customer object. Build in GO version 1.17.1 Live running app example

Oct 25, 2021
Package GoEagi provides some fundamental functionalities that work with Asterisk's EAGI

GoEagi Package GoEagi provides some fundamental functionalities that work with Asterisk's EAGI. It has the following features: Audio Streaming Google'

Dec 16, 2022
Beautifully simple single author blog in Go - derived from Bear Blog.
Beautifully simple single author blog in Go - derived from Bear Blog.

Polar Bear Blog ??‍❄️ Lightweight blogging system for a single author. Written in Go and deploys to your own GCP project with a few commands. It's a d

Jan 6, 2023
Everything a semantic desktop search engine combined with a single-user document management system

Everything will be a semantic desktop search engine combined with a single-user document management system. It will apply ideas of the semantic web and knowledge graphs to organize your data, allowing you to maintain private knowledge graphs as well as make use of public knowledge graphs, such as Wikidata.

May 21, 2022
Gramaddict web UI interface for a single device

Gramaddict web UI interface for a single device allow you to see the logs in real time, start and stop the bot all from your browser.

Dec 20, 2021
WriteFreely is a clean, minimalist publishing platform made for writers
WriteFreely is a clean, minimalist publishing platform made for writers

WriteFreely is a clean, minimalist publishing platform made for writers. Start a blog, share knowledge within your organization, or build a community

Jan 4, 2023
GoatCounter is an open source web analytics platform available as a hosted service or self-hosted app

GoatCounter is an open source web analytics platform available as a hosted service (free for non-commercial use) or self-hosted app. It aims to offer easy to use and meaningful privacy-friendly web analytics as an alternative to Google Analytics or Matomo.

Dec 29, 2022
an online REST renting book platform which you can authenticate, order, reserve a book in your account.
an online REST renting book platform which you can authenticate, order, reserve a book in your account.

BOOK MAN an online REST renting book platform which you can authenticate, order, reserve a book in your account. it's a microservices project with hig

Jul 22, 2022
Mattermost is an open source platform for secure collaboration across the entire software development lifecycle.
Mattermost is an open source platform for secure collaboration across the entire software development lifecycle.

Mattermost is an open source platform for secure collaboration across the entire software development lifecycle. This repo is the primary source for c

Jan 2, 2023