Releases: deltafy/logos-dev-cli-utils
Releases · deltafy/logos-dev-cli-utils
v0.4.2
v0.4.1
- added tests for fs- and postgres-related functions
v0.4.0
Adds Rust implementations for the following methods:
envToJsonString(envPath: string): string
- takes a path to an
.env
file (envPath
) and converts its key-value pairs to JSON. - the output string can be processed in JS by passing
JSON.parse()
- takes a path to an
jsonStringToEnv(jsonStr: string, envPath: string): void
- takes a JSON string
jsonStr
and creates an.env
file inenvPath
using the JSON's key-value pairs.
- takes a JSON string
v0.3.0
Add implementations for:
renameDatabase(url: string, database: string, newDatabaseName: string): Promise<PgResponse>
- renames a PostgreSQL database named
database
tonewDatabaseName
- renames a PostgreSQL database named
findNonexistentFiles(paths; Array<string>): Array<string>
- takes an array of file paths and returns the paths that are invalid
copyFile(source: string, destination: string, createDestIfNotExists?: boolean | undefined | null)
- overwrites contents of file from
source
path to a file indestination
. - by default, this will only overwrite the file if the file already exists.
- if
createDestIfNotExists
istrue
, this will create the file before writing.
- overwrites contents of file from
v0.2.0
Adds utils for testing Redis and PostgreSQL connection strings.
v0.1.0
Basic util for delegating NPM script executions to std::process::Command
.
v0.0.0
0.0.0