mirror of
https://github.com/j3ssie/osmedeus.git
synced 2026-09-28 12:34:59 +02:00
feat: table rendering, cron schedules, and assets command
- Refactor table display using tablewriter with box-drawing characters and proper Unicode width handling - Add --as-cron flag to register cron schedules instead of executing immediately - Implement new 'osmedeus assets' command for asset querying with filtering and statistics - Enhance workflow parameter display with categorization and per-module summaries - Improve column width handling and parameter documentation
This commit is contained in:
@@ -227,6 +227,46 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"/osm/api/asset-stats": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "Get unique values for technologies, sources, remarks, and asset types across all assets or filtered by workspace",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"Stats"
|
||||
],
|
||||
"summary": "Get asset statistics",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Filter by workspace name",
|
||||
"name": "workspace",
|
||||
"in": "query"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "Asset statistics",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/database.AssetStatsData"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Failed to get stats",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"additionalProperties": true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/osm/api/assets": {
|
||||
"get": {
|
||||
"security": [
|
||||
@@ -3261,6 +3301,35 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"database.AssetStatsData": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"asset_types": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"remarks": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"sources": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"technologies": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"database.RunStats": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -3431,6 +3500,10 @@ const docTemplate = `{
|
||||
"description": "Enable scheduled execution",
|
||||
"type": "boolean"
|
||||
},
|
||||
"skip_validation": {
|
||||
"description": "Validation",
|
||||
"type": "boolean"
|
||||
},
|
||||
"ssh_host": {
|
||||
"description": "SSH host when runner_type=ssh",
|
||||
"type": "string"
|
||||
|
||||
Reference in New Issue
Block a user