Removes one or more newline characters from the end of the given string.
Using chomp
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function chomp(args: ChompArgs, opts?: InvokeOptions): Promise<ChompResult>
function chompOutput(args: ChompOutputArgs, opts?: InvokeOptions): Output<ChompResult>def chomp(input: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> ChompResult
def chomp_output(input: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[ChompResult]func Chomp(ctx *Context, args *ChompArgs, opts ...InvokeOption) (*ChompResult, error)
func ChompOutput(ctx *Context, args *ChompOutputArgs, opts ...InvokeOption) ChompResultOutput> Note: This function is named Chomp in the Go SDK.
public static class Chomp
{
public static Task<ChompResult> InvokeAsync(ChompArgs args, InvokeOptions? opts = null)
public static Output<ChompResult> Invoke(ChompInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<ChompResult> chomp(ChompArgs args, InvokeOptions options)
public static Output<ChompResult> chomp(ChompArgs args, InvokeOptions options)
fn::invoke:
function: std:chomp
arguments:
# arguments dictionaryThe following arguments are supported:
- Input string
- Input string
- input String
- input string
- input str
- input String
chomp Result
The following output properties are available:
- Result string
- Result string
- result String
- result string
- result str
- result String
Package Details
- Repository
- std pulumi/pulumi-std
- License
