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
option | description |
---|---|
-i, --inline | changes the input |
-k, --keep | keeps a backup of the input |
-o, --output <path> | writes to path rather then writing to STDOUT |
- | |
-r, --original | sorts by original rather then the binding |
-s, --special | public 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
- Registered by Friedel Schoen
- 0.1.0 released 2 years ago
- friedelschoen/importsort-d
- zlib
- Copyright © 2022, Friedel Schoen
- Authors:
- 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 - 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