Re: Executing AWS commands

2020-11-17 Thread Paul Backus via Digitalmars-d-learn
On Tuesday, 17 November 2020 at 19:07:42 UTC, Vino wrote: auto pid = execute(["/usr/bin/aws ec2 describe-images --filters 'Name=state,Values=available' --query 'Images[*].[ImageId]'"]); [...] auto pid = execute(["/usr/bin/aws ec2 describe-images --filters 'Name=state,Values=available' --query

Executing AWS commands

2020-11-17 Thread Vino via Digitalmars-d-learn
Hi All, Request your help on how to execute aws commands, below is an example code, and this code is not working, tried several options nothing seem to be working. Code: import std.process: environment, execute; import std.stdio: writeln; void main() { environment["AWS_DEFAULT_REGION"] =

Re: magically a static member on init?

2020-11-17 Thread Ola Fosheim Grøstad via Digitalmars-d-learn
On Tuesday, 17 November 2020 at 13:24:03 UTC, Kagamin wrote: On Saturday, 14 November 2020 at 23:30:58 UTC, Adam D. Ruppe wrote: On Saturday, 14 November 2020 at 23:20:55 UTC, Martin wrote: Is this intentional? In the current language design, yes. It's a bug, it breaks data sharing

Re: magically a static member on init?

2020-11-17 Thread Kagamin via Digitalmars-d-learn
On Saturday, 14 November 2020 at 23:30:58 UTC, Adam D. Ruppe wrote: On Saturday, 14 November 2020 at 23:20:55 UTC, Martin wrote: Is this intentional? In the current language design, yes. It's a bug, it breaks data sharing guarantees.