argparse 1.1.0: now with ANSI colors and styles

2022-08-24 Thread Andrey Zherikov via Digitalmars-d-announce

New version 1.1.0 of `argparse` is published!

Major feature in this version is fully customized ANSI coloring 
and styling.

Here is an example of default styling:
![example](https://github.com/andrey-zherikov/argparse/blob/18c1598dc4b015edfdd054e5f70d6ca359c480c9/images/default_styling.png?raw=true)

Complete list of available features can be found in 
[readme](https://github.com/andrey-zherikov/argparse#features).


arsd 10.9 tagged

2022-08-24 Thread Adam D Ruppe via Digitalmars-d-announce

release notes on my blog:

http://dpldocs.info/this-week-in-d/Blog.Posted_2022_08_22.html

known as arsd-official on dub, the library is a set of about 80 
generally independent modules that you can pick and choose 
functionality from without onerous compile time nor run time 
dependencies, covering a broad array of use cases such as:


* terminal.d for interactive text applications (comparable to 
ncurses and getline libraries),


* simpledisplay, simpleaudio, and joystick for graphical 
applications (comparable to SDL libraries)


* cgi.d, database.d, and many more for web server applications

* dom.d for xml+html processing

* minigui.d for desktop gui applications

* image.d, archive, png, midi, ogg, and more for common file 
format work


* nanovega and svg for 2d vector graphics

* script.d and jsvar.d for an embeddable scripting language

* http and websocket clients

* jni.d and com.d for interfacing with outside languages

* and other random things


Re: New WIP DUB documentation

2022-08-24 Thread bauss via Digitalmars-d-announce
On Wednesday, 24 August 2022 at 10:31:55 UTC, Andrey Zherikov 
wrote:
Just throwing an idea: may be dub can support yaml which has 
comments?


The sdl format already supports that, which dub uses.

Json is supposed to be deprecated in dub, but obviously works for 
backwards compatibility.


https://sdlang.org/


Re: New WIP DUB documentation

2022-08-24 Thread Andrey Zherikov via Digitalmars-d-announce
Just throwing an idea: may be dub can support yaml which has 
comments?


Re: New WIP DUB documentation

2022-08-24 Thread Mathias LANG via Digitalmars-d-announce

On Thursday, 18 August 2022 at 20:00:10 UTC, Bastiaan Veelo wrote:


That's already possible, as unrecognised items are ignored.


Actually, from next version, dub will start to warn you (in 
dub.json) about unknown keys. It does catch quite a lot of 
mistakes, see 
https://github.com/dlang/dub/pull/2280#issuecomment-1223326664


Re: New WIP DUB documentation

2022-08-24 Thread Martin Tschierschke via Digitalmars-d-announce

On Thursday, 18 August 2022 at 20:00:10 UTC, Bastiaan Veelo wrote:


That's already possible, as unrecognised items are ignored. 
This is however not flexible enough, as comments are not so 
much wanted for adding explanations but much more for 
commenting out specific parts. It does work sometimes: you can 
for example disable `preBuildCommands` by editing it to 
`preBuildCommandsDISABLED`. I don't think you can comment out a 
dependency this way, and you cannot comment out an item from an 
array like

```json
{
"preBuildCommands": [
"step one",
#"step two",
"step three"
]
}
```

-- Bastiaan.

Ok, thank you, got it.