diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index e6ba2cd..34ffe2f 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -45,9 +45,9 @@ jobs: - name: Upgrade wit deps run: wit-deps update - name: Generate markdown for the command world - run: wit-bindgen markdown wit -w command --html-in-md --all-features + run: wit-bindgen markdown wit -w command --html-in-md --features=cli-with-exit-code - name: Generate markdown for the imports world - run: wit-bindgen markdown wit -w imports --html-in-md --all-features + run: wit-bindgen markdown wit -w imports --html-in-md --features=cli-with-exit-code # file PR - name: Create feature branch diff --git a/command.md b/command.md index ee3d650..1350bc2 100644 --- a/command.md +++ b/command.md @@ -17,7 +17,6 @@
wasi:cli/terminal-stderr@0.2.4wasi:clocks/monotonic-clock@0.2.4wasi:clocks/wall-clock@0.2.4wasi:clocks/timezone@0.2.4wasi:filesystem/types@0.2.4wasi:filesystem/preopens@0.2.4wasi:sockets/network@0.2.4type datetime-#### `record timezone-display` -
Information useful for displaying the timezone of a specific datetime.
This information may vary within a single timezone to reflect daylight
-saving time adjustments.
utc-offset: s32
The number of seconds difference between UTC time and the local -time of the timezone. -
The returned value will always be less than 86400 which is the -number of seconds in a day (246060).
-In implementations that do not expose an actual time zone, this -should return 0.
-The abbreviated name of the timezone to display to a user. The name -`UTC` indicates Coordinated Universal Time. Otherwise, this should -reference local standards for the name of the time zone. -
In implementations that do not expose an actual time zone, this
-should be the string UTC.
In time zones that do not have an applicable name, a formatted
-representation of the UTC offset may be returned, such as -04:00.
Whether daylight saving time is active. -
In implementations that do not expose an actual time zone, this -should return false.
-display: funcReturn information needed to display the given datetime. This includes
-the UTC offset, the time zone name, and a flag indicating whether
-daylight saving time is active.
If the timezone cannot be determined for the given datetime, return a
-timezone-display for UTC with a utc-offset of 0 and no daylight
-saving time.
when: datetimetimezone-displayutc-offset: funcThe same as display, but only return the UTC offset.
when: datetimeWASI filesystem is a filesystem API primarily intended to let users run WASI programs that access their files on their existing filesystems, without @@ -1669,10 +1603,7 @@ errors are filesystem-related errors.
type errorresource networkAn opaque resource that represents access to (a subset of) the network. This enables context-based security for networking. There is no need for this to map 1:1 to a physical network interface.
@@ -1862,25 +1793,6 @@ supported size.ipv4: ipv4-socket-addressipv6: ipv6-socket-addressnetwork-error-code: funcAttempts to extract a network-related error-code from the stream
-error provided.
Stream operations which return stream-error::last-operation-failed
-have a payload with more information about the operation that failed.
-This payload can be passed through to this function to see if there's
-network-related information about the error to return.
Note that this function is fallible because not all stream-related -errors are network-related errors.
-err: borrow<error>error-code>This interface provides a value-export of the default network handle..
wasi:cli/terminal-stderr@0.2.4wasi:clocks/monotonic-clock@0.2.4wasi:clocks/wall-clock@0.2.4wasi:clocks/timezone@0.2.4wasi:filesystem/types@0.2.4wasi:filesystem/preopens@0.2.4wasi:sockets/network@0.2.4type datetime-#### `record timezone-display` -
Information useful for displaying the timezone of a specific datetime.
This information may vary within a single timezone to reflect daylight
-saving time adjustments.
utc-offset: s32
The number of seconds difference between UTC time and the local -time of the timezone. -
The returned value will always be less than 86400 which is the -number of seconds in a day (246060).
-In implementations that do not expose an actual time zone, this -should return 0.
-The abbreviated name of the timezone to display to a user. The name -`UTC` indicates Coordinated Universal Time. Otherwise, this should -reference local standards for the name of the time zone. -
In implementations that do not expose an actual time zone, this
-should be the string UTC.
In time zones that do not have an applicable name, a formatted
-representation of the UTC offset may be returned, such as -04:00.
Whether daylight saving time is active. -
In implementations that do not expose an actual time zone, this -should return false.
-display: funcReturn information needed to display the given datetime. This includes
-the UTC offset, the time zone name, and a flag indicating whether
-daylight saving time is active.
If the timezone cannot be determined for the given datetime, return a
-timezone-display for UTC with a utc-offset of 0 and no daylight
-saving time.
when: datetimetimezone-displayutc-offset: funcThe same as display, but only return the UTC offset.
when: datetimeWASI filesystem is a filesystem API primarily intended to let users run WASI programs that access their files on their existing filesystems, without @@ -1664,10 +1598,7 @@ errors are filesystem-related errors.
type errorresource networkAn opaque resource that represents access to (a subset of) the network. This enables context-based security for networking. There is no need for this to map 1:1 to a physical network interface.
@@ -1857,25 +1788,6 @@ supported size.ipv4: ipv4-socket-addressipv6: ipv6-socket-addressnetwork-error-code: funcAttempts to extract a network-related error-code from the stream
-error provided.
Stream operations which return stream-error::last-operation-failed
-have a payload with more information about the operation that failed.
-This payload can be passed through to this function to see if there's
-network-related information about the error to return.
Note that this function is fallible because not all stream-related -errors are network-related errors.
-err: borrow<error>error-code>This interface provides a value-export of the default network handle..