push-to-registry/src/util.ts
Divyanshu Agrawal 870f44bc9b
Add feature to pass extra args when pushing image (#19)
If a user wants to pass few extra args to push
command when pushing image, then they can pass
using 'extra-args' input parameter.

Signed-off-by: divyansh42 <diagrawa@redhat.com>
2021-02-08 09:37:42 -05:00

8 lines
439 B
TypeScript

/***************************************************************************************************
* Copyright (c) Red Hat, Inc. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
**************************************************************************************************/
export function splitByNewline(s: string): string[] {
return s.split(/\r?\n/);
}