update the command description

This commit is contained in:
MaysWind
2026-03-04 22:37:55 +08:00
parent 973cec2c6a
commit b729fdedca
2 changed files with 31 additions and 31 deletions
+15 -15
View File
@@ -27,7 +27,7 @@ $script:EBKTOOL_TOKEN = $env:EBKTOOL_TOKEN
$API_CONFIGS = @(
@{
Name = "tokens-list"
Description = "Get available sessions information"
Description = "Retrieve all sessions for the current user"
Method = "GET"
Path = "tokens/list.json"
RequiresTimezone = $false
@@ -53,7 +53,7 @@ $API_CONFIGS = @(
}
@{
Name = "tokens-revoke"
Description = "Revoke token"
Description = "Revoke a specified token"
Method = "POST"
Path = "tokens/revoke.json"
RequiresTimezone = $false
@@ -71,7 +71,7 @@ $API_CONFIGS = @(
}
@{
Name = "accounts-list"
Description = "Get all accounts list"
Description = "Retrieve all account information"
Method = "GET"
Path = "accounts/list.json"
RequiresTimezone = $false
@@ -109,7 +109,7 @@ $API_CONFIGS = @(
}
@{
Name = "accounts-add"
Description = "Add account"
Description = "Add a new account"
Method = "POST"
Path = "accounts/add.json"
RequiresTimezone = $true
@@ -162,7 +162,7 @@ $API_CONFIGS = @(
}
@{
Name = "transaction-categories-list"
Description = "Get all transaction categories"
Description = "Retrieve all available transaction categories"
Method = "GET"
Path = "transaction/categories/list.json"
RequiresTimezone = $false
@@ -196,7 +196,7 @@ $API_CONFIGS = @(
}
@{
Name = "transaction-categories-add"
Description = "Add transaction category"
Description = "Add a new transaction category"
Method = "POST"
Path = "transaction/categories/add.json"
RequiresTimezone = $false
@@ -235,7 +235,7 @@ $API_CONFIGS = @(
}
@{
Name = "transaction-tags-list"
Description = "Get all transaction tags list"
Description = "Retrieve all available transaction tags"
Method = "GET"
Path = "transaction/tags/list.json"
RequiresTimezone = $false
@@ -261,7 +261,7 @@ $API_CONFIGS = @(
}
@{
Name = "transaction-tags-add"
Description = "Add transaction tag"
Description = "Add a new transaction tag"
Method = "POST"
Path = "transaction/tags/add.json"
RequiresTimezone = $false
@@ -287,7 +287,7 @@ $API_CONFIGS = @(
}
@{
Name = "transactions-list"
Description = "Get transactions list with pagination"
Description = "Retrieve transaction data based on specified query criteria (with pagination support)"
Method = "GET"
Path = "transactions/list.json"
RequiresTimezone = $true
@@ -369,7 +369,7 @@ $API_CONFIGS = @(
}
@{
Name = "transactions-list-all"
Description = "Get all transactions list"
Description = "Retrieve all transaction data matching the specified query criteria"
Method = "GET"
Path = "transactions/list/all.json"
RequiresTimezone = $true
@@ -436,7 +436,7 @@ $API_CONFIGS = @(
}
@{
Name = "transactions-add"
Description = "Add transaction"
Description = "Add a new transaction"
Method = "POST"
Path = "transactions/add.json"
RequiresTimezone = $true
@@ -499,7 +499,7 @@ $API_CONFIGS = @(
}
@{
Name = "exchangerates-latest"
Description = "Get latest exchange rates"
Description = "Retrieve the latest exchange rate data"
Method = "GET"
Path = "exchange_rates/latest.json"
RequiresTimezone = $false
@@ -534,7 +534,7 @@ $API_CONFIGS = @(
}
@{
Name = "server-version"
Description = "Get ezBookkeeping server version information"
Description = "Retrieve ezBookkeeping server version information"
Method = "GET"
Path = "systems/version.json"
RequiresTimezone = $false
@@ -1169,7 +1169,7 @@ function Show-Help {
Write-Host " EBKTOOL_SERVER_BASEURL ezBookkeeping server base URL (e.g., http://localhost:8080)"
Write-Host " EBKTOOL_TOKEN ezBookkeeping API token"
Write-Host ""
Write-Host " You can also set the above environment variables in a .env file located in the current directory, parent directory or home directory."
Write-Host " You can also set the above environment variables in a '.env' file located in the current directory, parent directory or home directory."
Write-Host ""
Write-Host "Global Options:"
Write-Host " -tzName <name> The IANA timezone name of current timezone. For example, for Beijing Time it is 'Asia/Shanghai'."
@@ -1212,7 +1212,7 @@ function Show-CommandList {
}
Write-Host ""
Write-Host "Use 'ebktools.ps1 help <api-command>' to see detailed information about a API command."
Write-Host "Use 'ebktools.ps1 help <api-command>' to see detailed information about an API command."
}
function Show-CommandHelp {