|
5 | 5 | "description": "Format code on the clipboard", |
6 | 6 | "icon": "icon.png", |
7 | 7 | "author": "ikaraszi", |
8 | | - "categories": [ |
9 | | - "Developer Tools" |
10 | | - ], |
| 8 | + "categories": ["Developer Tools"], |
11 | 9 | "license": "MIT", |
12 | 10 | "commands": [ |
13 | 11 | { |
|
105 | 103 | "title": "Format YAML", |
106 | 104 | "description": "Formats YAML on the clipboard", |
107 | 105 | "mode": "view" |
| 106 | + }, |
| 107 | + { |
| 108 | + "name": "format-sql", |
| 109 | + "title": "Format SQL", |
| 110 | + "description": "Formats SQL on the clipboard", |
| 111 | + "mode": "view" |
108 | 112 | } |
109 | 113 | ], |
110 | 114 | "preferences": [ |
|
115 | 119 | "description": "Specify the line length that the printer will wrap on.", |
116 | 120 | "placeholder": "100", |
117 | 121 | "required": false |
| 122 | + }, |
| 123 | + { |
| 124 | + "name": "sqlDialect", |
| 125 | + "title": "SQL dialect", |
| 126 | + "type": "dropdown", |
| 127 | + "description": "Set the SQL dialect", |
| 128 | + "data": [ |
| 129 | + { "value": "sql", "title": "Standard SQL" }, |
| 130 | + { "value": "bigquery", "title": "GCP BigQuery" }, |
| 131 | + { "value": "db2", "title": "IBM DB2" }, |
| 132 | + { "value": "db2i", "title": "IBM DB2i (experimental)" }, |
| 133 | + { "value": "duckdb", "title": "DuckDB" }, |
| 134 | + { "value": "hive", "title": "Apache Hive" }, |
| 135 | + { "value": "mariadb", "title": "MariaDB" }, |
| 136 | + { "value": "mysql", "title": "MySQL" }, |
| 137 | + { "value": "tidb", "title": "TiDB" }, |
| 138 | + { "value": "n1ql", "title": "Couchbase N1QL" }, |
| 139 | + { "value": "plsql", "title": "Oracle PL/SQL" }, |
| 140 | + { "value": "postgresql", "title": "PostgreSQL" }, |
| 141 | + { "value": "redshift", "title": "Amazon Redshift" }, |
| 142 | + { "value": "singlestoredb", "title": "SingleStoreDB" }, |
| 143 | + { "value": "snowflake", "title": "Snowflake" }, |
| 144 | + { "value": "spark", "title": "Spark" }, |
| 145 | + { "value": "sqlite", "title": "SQLite" }, |
| 146 | + { "value": "transactsql", "title": "SQL Server Transact-SQL" }, |
| 147 | + { "value": "trino", "title": "Trino / Presto" } |
| 148 | + ], |
| 149 | + "required": false |
118 | 150 | } |
119 | 151 | ], |
120 | 152 | "dependencies": { |
121 | 153 | "@raycast/api": "^1.55.2", |
122 | 154 | "@raycast/utils": "^1.8.0", |
123 | | - "prettier": "^2.8.8" |
| 155 | + "prettier": "^2.8.8", |
| 156 | + "sql-formatter": "^15.6.2" |
124 | 157 | }, |
125 | 158 | "devDependencies": { |
126 | 159 | "@raycast/eslint-config": "1.0.5", |
|
134 | 167 | "build": "ray build -e dist", |
135 | 168 | "dev": "ray develop", |
136 | 169 | "fix-lint": "ray lint --fix", |
| 170 | + "eslint": "eslint src", |
137 | 171 | "lint": "ray lint", |
138 | 172 | "publish": "npx @raycast/api@latest publish" |
139 | 173 | } |
|
0 commit comments