@settlemint/sdk-utils
Advanced tools
Comparing version 1.0.5-mainff99fff6 to 1.0.5-pr7c240f08
import { AgentName } from 'package-manager-detector'; | ||
/** | ||
* Available templates for project creation | ||
*/ | ||
type Template = { | ||
value: string; | ||
label: string; | ||
}; | ||
declare const templates: Template[]; | ||
/** | ||
* Formats a directory path by removing trailing slashes and whitespace | ||
@@ -122,2 +114,2 @@ * | ||
export { type Template, emptyDir, formatTargetDir, getPackageManager, getPackageManagerExecutable, installDependencies, isEmpty, isPackageInstalled, setName, templates }; | ||
export { emptyDir, formatTargetDir, getPackageManager, getPackageManagerExecutable, installDependencies, isEmpty, isPackageInstalled, setName }; |
@@ -87,2 +87,24 @@ import { SpawnOptionsWithoutStdio } from 'node:child_process'; | ||
/** | ||
* Displays a list of items in a formatted manner, supporting nested items. | ||
* | ||
* @param title - The title of the list | ||
* @param items - The items to display, can be strings or arrays for nested items | ||
* @returns The formatted list | ||
* @example | ||
* import { list } from "@settlemint/sdk-utils/terminal"; | ||
* | ||
* // Simple list | ||
* list("Use cases", ["use case 1", "use case 2", "use case 3"]); | ||
* | ||
* // Nested list | ||
* list("Providers", [ | ||
* "AWS", | ||
* ["us-east-1", "eu-west-1"], | ||
* "Azure", | ||
* ["eastus", "westeurope"] | ||
* ]); | ||
*/ | ||
declare function list(title: string, items: Array<string | string[]>): void; | ||
/** | ||
* Displays a note message with optional warning level formatting. | ||
@@ -152,2 +174,2 @@ * Regular notes are displayed in normal text, while warnings are shown in yellow. | ||
export { type ExecuteCommandOptions, type SpinnerOptions, ascii, cancel, executeCommand, intro, maskTokens, note, outro, spinner }; | ||
export { type ExecuteCommandOptions, type SpinnerOptions, ascii, cancel, executeCommand, intro, list, maskTokens, note, outro, spinner }; |
{ | ||
"name": "@settlemint/sdk-utils", | ||
"description": "Shared utilities and helper functions for SettleMint SDK modules", | ||
"version": "1.0.5-mainff99fff6", | ||
"version": "1.0.5-pr7c240f08", | ||
"type": "module", | ||
@@ -6,0 +6,0 @@ "private": false, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
478456
3354