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 @@
  • interface wasi:cli/terminal-stderr@0.2.4
  • interface wasi:clocks/monotonic-clock@0.2.4
  • interface wasi:clocks/wall-clock@0.2.4
  • -
  • interface wasi:clocks/timezone@0.2.4
  • interface wasi:filesystem/types@0.2.4
  • interface wasi:filesystem/preopens@0.2.4
  • interface wasi:sockets/network@0.2.4
  • @@ -709,71 +708,6 @@ also known as Unix Time.
  • datetime
  • -

    Import interface wasi:clocks/timezone@0.2.4

    -
    -

    Types

    -

    type datetime

    -

    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.

    -
    Record Fields
    - -
    -

    Functions

    -

    display: func

    -

    Return 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.

    -
    Params
    - -
    Return values
    - -

    utc-offset: func

    -

    The same as display, but only return the UTC offset.

    -
    Params
    - -
    Return values
    -

    Import interface wasi:filesystem/types@0.2.4

    WASI 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.

    Import interface wasi:sockets/network@0.2.4


    Types

    -

    type error

    -

    error

    -

    -#### `resource network` +

    resource network

    An 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-address
  • ipv6: ipv6-socket-address
  • -
    -

    Functions

    -

    network-error-code: func

    -

    Attempts 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.

    -
    Params
    - -
    Return values
    -

    Import interface wasi:sockets/instance-network@0.2.4

    This interface provides a value-export of the default network handle..


    diff --git a/imports.md b/imports.md index 58c8d29..1751177 100644 --- a/imports.md +++ b/imports.md @@ -17,7 +17,6 @@
  • interface wasi:cli/terminal-stderr@0.2.4
  • interface wasi:clocks/monotonic-clock@0.2.4
  • interface wasi:clocks/wall-clock@0.2.4
  • -
  • interface wasi:clocks/timezone@0.2.4
  • interface wasi:filesystem/types@0.2.4
  • interface wasi:filesystem/preopens@0.2.4
  • interface wasi:sockets/network@0.2.4
  • @@ -704,71 +703,6 @@ also known as Unix Time.
  • datetime
  • -

    Import interface wasi:clocks/timezone@0.2.4

    -
    -

    Types

    -

    type datetime

    -

    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.

    -
    Record Fields
    - -
    -

    Functions

    -

    display: func

    -

    Return 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.

    -
    Params
    - -
    Return values
    - -

    utc-offset: func

    -

    The same as display, but only return the UTC offset.

    -
    Params
    - -
    Return values
    -

    Import interface wasi:filesystem/types@0.2.4

    WASI 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.

    Import interface wasi:sockets/network@0.2.4


    Types

    -

    type error

    -

    error

    -

    -#### `resource network` +

    resource network

    An 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-address
  • ipv6: ipv6-socket-address
  • -
    -

    Functions

    -

    network-error-code: func

    -

    Attempts 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.

    -
    Params
    - -
    Return values
    -

    Import interface wasi:sockets/instance-network@0.2.4

    This interface provides a value-export of the default network handle..