@@ -269,18 +269,31 @@ These are functions that create a pipe with a given contents:
269269
270270| Source | Contents |
271271| -------- | ------------- |
272- | [ ` Args ` ] ( https://pkg.go.dev/github.com/bitfield/script#Args ) | command-line arguments
273- | [ ` Do ` ] ( https://pkg.go.dev/github.com/bitfield/script#Do ) | HTTP response
274- | [ ` Echo ` ] ( https://pkg.go.dev/github.com/bitfield/script#Echo ) | a string
275- | [ ` Exec ` ] ( https://pkg.go.dev/github.com/bitfield/script#Exec ) | command output
276- | [ ` File ` ] ( https://pkg.go.dev/github.com/bitfield/script#File ) | file contents
277- | [ ` FindFiles ` ] ( https://pkg.go.dev/github.com/bitfield/script#FindFiles ) | recursive file listing
278- | [ ` Get ` ] ( https://pkg.go.dev/github.com/bitfield/script#Get ) | HTTP response
279- | [ ` IfExists ` ] ( https://pkg.go.dev/github.com/bitfield/script#IfExists ) | do something only if some file exists
280- | [ ` ListFiles ` ] ( https://pkg.go.dev/github.com/bitfield/script#ListFiles ) | file listing (including wildcards)
281- | [ ` Post ` ] ( https://pkg.go.dev/github.com/bitfield/script#Post ) | HTTP response
282- | [ ` Slice ` ] ( https://pkg.go.dev/github.com/bitfield/script#Slice ) | slice elements, one per line
283- | [ ` Stdin ` ] ( https://pkg.go.dev/github.com/bitfield/script#Stdin ) | standard input
272+ | [ ` Args ` ] ( https://pkg.go.dev/github.com/bitfield/script#Args ) | command-line arguments |
273+ | [ ` Do ` ] ( https://pkg.go.dev/github.com/bitfield/script#Do ) | HTTP response |
274+ | [ ` Echo ` ] ( https://pkg.go.dev/github.com/bitfield/script#Echo ) | a string |
275+ | [ ` Exec ` ] ( https://pkg.go.dev/github.com/bitfield/script#Exec ) | command output |
276+ | [ ` File ` ] ( https://pkg.go.dev/github.com/bitfield/script#File ) | file contents |
277+ | [ ` FindFiles ` ] ( https://pkg.go.dev/github.com/bitfield/script#FindFiles ) | recursive file listing |
278+ | [ ` Get ` ] ( https://pkg.go.dev/github.com/bitfield/script#Get ) | HTTP response |
279+ | [ ` IfExists ` ] ( https://pkg.go.dev/github.com/bitfield/script#IfExists ) | do something only if some file exists |
280+ | [ ` ListFiles ` ] ( https://pkg.go.dev/github.com/bitfield/script#ListFiles ) | file listing (including wildcards) |
281+ | [ ` Post ` ] ( https://pkg.go.dev/github.com/bitfield/script#Post ) | HTTP response |
282+ | [ ` Slice ` ] ( https://pkg.go.dev/github.com/bitfield/script#Slice ) | slice elements, one per line |
283+ | [ ` Stdin ` ] ( https://pkg.go.dev/github.com/bitfield/script#Stdin ) | standard input |
284+
285+ ## Modifiers
286+
287+ These are methods on a pipe that change its configuration:
288+
289+ | Source | Modifies |
290+ | -------- | ------------- |
291+ | [ ` WithEnv ` ] ( https://pkg.go.dev/github.com/bitfield/script#Pipe.WithEnv ) | environment for commands |
292+ | [ ` WithError ` ] ( https://pkg.go.dev/github.com/bitfield/script#Pipe.WithError ) | pipe error status |
293+ | [ ` WithHTTPClient ` ] ( https://pkg.go.dev/github.com/bitfield/script#Pipe.WithHTTPClient ) | client for HTTP requests |
294+ | [ ` WithReader ` ] ( https://pkg.go.dev/github.com/bitfield/script#Pipe.WithReader ) | pipe source |
295+ | [ ` WithStderr ` ] ( https://pkg.go.dev/github.com/bitfield/script#Pipe.WithStderr ) | standard error output stream for command |
296+ | [ ` WithStdout ` ] ( https://pkg.go.dev/github.com/bitfield/script#Pipe.WithStdout ) | standard output stream for pipe |
284297
285298## Filters
286299
@@ -340,7 +353,8 @@ Sinks are methods that return some data from a pipe, ending the pipeline and ext
340353
341354| Version | New |
342355| ----------- | ------- |
343- | _ next_ | [ ` DecodeBase64 ` ] ( https://pkg.go.dev/github.com/bitfield/script#Pipe.DecodeBase64 ) / [ ` EncodeBase64 ` ] ( https://pkg.go.dev/github.com/bitfield/script#Pipe.EncodeBase64 ) |
356+ | _ next_ | [ ` WithEnv ` ] ( https://pkg.go.dev/github.com/bitfield/script#Pipe.WithEnv ) |
357+ | | [ ` DecodeBase64 ` ] ( https://pkg.go.dev/github.com/bitfield/script#Pipe.DecodeBase64 ) / [ ` EncodeBase64 ` ] ( https://pkg.go.dev/github.com/bitfield/script#Pipe.EncodeBase64 ) |
344358| v0.22.0 | [ ` Tee ` ] ( https://pkg.go.dev/github.com/bitfield/script#Pipe.Tee ) , [ ` WithStderr ` ] ( https://pkg.go.dev/github.com/bitfield/script#Pipe.WithStderr ) |
345359| v0.21.0 | HTTP support: [ ` Do ` ] ( https://pkg.go.dev/github.com/bitfield/script#Pipe.Do ) , [ ` Get ` ] ( https://pkg.go.dev/github.com/bitfield/script#Pipe.Get ) , [ ` Post ` ] ( https://pkg.go.dev/github.com/bitfield/script#Pipe.Post ) |
346360| v0.20.0 | [ ` JQ ` ] ( https://pkg.go.dev/github.com/bitfield/script#Pipe.JQ ) |
0 commit comments