importsort-d 0.1.0

sort imports of a .d-file


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:

Sort Imports for D

sortimport-d can sort your dozens of import's in a .d file (no matter where)

Installation

Prerequirements

Building

Get the repository with git and compile everything with dub

$ git clone https://github.com/friedelschoen/importsort-d
$ cd importsort-d
$ dub build

If everything went fine, there should be a binary at bin/importsort-d.

Copy this into a directory included in $PATH (/usr/bin for example) to make this command working global.

Usage

$ importsort-d [--inline [--keep]] [--out <output>] [--original] [--special] [<input>]

input may be omitted or set to - to read from STDIN

optiondescription
-i, --inlinechanges the input
-k, --keepkeeps a backup of the input
-o, --output <path>writes to path rather then writing to STDOUT
-
-r, --originalsorts by original rather then the binding
-s, --specialpublic and static imports first

License

This whole project is licensed under the beautiful terms of the zlib-license.

Further information here

made with love and a lot of cat memes

Authors:
  • Friedel Schoen
Dependencies:
none
Versions:
0.3.2 2023-Dec-23
0.3.1 2022-Oct-23
0.3.0 2022-Oct-22
0.2.0 2022-Oct-18
0.1.0 2022-Oct-10
Show all 6 versions
Download Stats:
  • 0 downloads today

  • 1 downloads this week

  • 1 downloads this month

  • 23 downloads total

Score:
0.3
Short URL:
importsort-d.dub.pm