-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #373 from dictu-lang/develop
Release 0.16.0
- Loading branch information
Showing
99 changed files
with
2,479 additions
and
773 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
@charset "UTF-8"; | ||
{% if site.logo %} | ||
$logo: "{{ site.logo | absolute_url }}"; | ||
{% endif %} | ||
@import "./support/support"; | ||
@import "./color_schemes/{{ include.color_scheme }}"; | ||
@import "./color_schemes/light"; | ||
@import "./modules"; | ||
@media (prefers-color-scheme: dark) { | ||
@import "./color_schemes/dark"; | ||
@import "./modules"; | ||
} | ||
{% include css/custom.scss.liquid %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
@charset "UTF-8"; | ||
|
||
// | ||
// Styles for rendered markdown in the .main-content container | ||
// | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
--- | ||
layout: default | ||
title: Process | ||
nav_order: 12 | ||
parent: Standard Library | ||
--- | ||
|
||
# Process | ||
{: .no_toc } | ||
|
||
## Table of contents | ||
{: .no_toc .text-delta } | ||
|
||
1. TOC | ||
{:toc} | ||
|
||
--- | ||
|
||
## Process | ||
|
||
To make use of the Process module an import is required. | ||
|
||
```cs | ||
import Process; | ||
``` | ||
|
||
### Process.exec(list) | ||
|
||
Executing an external process can be done via `.exec`. Unlike `.run()` exec does not wait for the process | ||
to finish executing, so it is only useful for circumstances where you wish to "fire and forget". | ||
|
||
`.exec()` expects a list as a parameter which is the command and any arguments for the command as individual list elements, which all must be strings. | ||
It will return a Result that unwraps to `nil` on success. | ||
|
||
```cs | ||
Process.exec(["ls", "-la"]); | ||
``` | ||
|
||
### Process.run(list, boolean: captureOutput -> optional) | ||
|
||
Similar to `.run()` except this **will** wait for the external process to finish executing. | ||
|
||
`.run()` expects a list as a parameter which is the command and any arguments for the command as individual list elements, | ||
and it will return a Result that unwraps to `nil` on success. | ||
|
||
If the external process writes to stdout and you wish to capture the output you can pass an optional boolean argument to | ||
`.run()`, this will instead make the Result unwrap to a string of the captured output. | ||
|
||
```cs | ||
Process.run(["ls", "-la"]).unwrap(); | ||
print(Process.run(["echo", "test"], true).unwrap()); // 'test' | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.