Skip to content

Releases: deltafy/logos-dev-cli-utils

v0.4.2

29 Jul 20:27
Compare
Choose a tag to compare
  • fixed a pattern matching issue when calling json_string_to_env()

v0.4.1

29 Jul 14:38
Compare
Choose a tag to compare
  • added tests for fs- and postgres-related functions

v0.4.0

29 Jul 05:13
Compare
Choose a tag to compare

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()
  • jsonStringToEnv(jsonStr: string, envPath: string): void
    • takes a JSON string jsonStr and creates an .env file in envPath using the JSON's key-value pairs.

v0.3.0

29 Jul 01:27
Compare
Choose a tag to compare

Add implementations for:

  • renameDatabase(url: string, database: string, newDatabaseName: string): Promise<PgResponse>
    • renames a PostgreSQL database named database to newDatabaseName
  • 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 in destination.
    • by default, this will only overwrite the file if the file already exists.
    • if createDestIfNotExists is true, this will create the file before writing.

v0.2.0

27 Jul 21:25
Compare
Choose a tag to compare

Adds utils for testing Redis and PostgreSQL connection strings.

v0.1.0

27 Jul 06:31
Compare
Choose a tag to compare

Basic util for delegating NPM script executions to std::process::Command.

v0.0.0

27 Jul 05:28
Compare
Choose a tag to compare
0.0.0