Skip to content

Commit e3d9c23

Browse files
Add documentation for supported config file extensions
Co-authored-by: dlevy-msft-sql <[email protected]>
1 parent 3f0900a commit e3d9c23

14 files changed

Lines changed: 3611 additions & 3897 deletions

File tree

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,24 @@ sqlcmd config connection-strings
8282
sqlcmd config view
8383
```
8484

85+
#### Custom Configuration Files
86+
87+
You can specify a custom configuration file using the `--sqlconfig` flag. The configuration file must use one of the following supported file extensions:
88+
- `.yaml` or `.yml` (YAML format)
89+
- `.json` (JSON format)
90+
- `.toml` (TOML format)
91+
- `.ini` (INI format)
92+
- `.env` (Dotenv format)
93+
- `.properties` (Properties format)
94+
95+
Example:
96+
```
97+
sqlcmd config --sqlconfig ./myproject.yaml add-endpoint --name ep1434 --address localhost --port 1434
98+
sqlcmd config --sqlconfig ./myproject.yaml view
99+
```
100+
101+
**Note:** Using unsupported file extensions (like `.sqlconfig`) will result in an "Unsupported Config Type" error when modifying the configuration. The default configuration file at `~/.sqlcmd/sqlconfig` uses YAML format without an extension.
102+
85103
### Versions
86104

87105
To see all version tags to choose from (2017, 2019, 2022 etc.), and install a specific version, run:

cmd/modern/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ func (c *Root) addGlobalFlags() {
121121
String: &c.configFilename,
122122
DefaultString: config.DefaultFileName(),
123123
Name: "sqlconfig",
124-
Usage: localizer.Sprintf("configuration file"),
124+
Usage: localizer.Sprintf("configuration file (supported extensions: .yaml, .yml, .json, .toml, .ini, .env, .properties)"),
125125
})
126126

127127
/* BUG(stuartpa): - At the moment this is a top level flag, but it doesn't

internal/translations/catalog.go

Lines changed: 3559 additions & 3612 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/translations/locales/de-DE/out.gotext.json

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,9 @@
4747
"fuzzy": true
4848
},
4949
{
50-
"id": "configuration file",
51-
"message": "configuration file",
52-
"translation": "Konfigurationsdatei",
53-
"translatorComment": "Copied from source.",
54-
"fuzzy": true
50+
"id": "configuration file (supported extensions: .yaml, .yml, .json, .toml, .ini, .env, .properties)",
51+
"message": "configuration file (supported extensions: .yaml, .yml, .json, .toml, .ini, .env, .properties)",
52+
"translation": ""
5553
},
5654
{
5755
"id": "log level, error=0, warn=1, info=2, debug=3, trace=4",
@@ -2403,27 +2401,6 @@
24032401
"translatorComment": "Copied from source.",
24042402
"fuzzy": true
24052403
},
2406-
{
2407-
"id": "Press Ctrl+C to exit this process...",
2408-
"message": "Press Ctrl+C to exit this process...",
2409-
"translation": "Drücken Sie STRG+C, um diesen Prozess zu beenden...",
2410-
"translatorComment": "Copied from source.",
2411-
"fuzzy": true
2412-
},
2413-
{
2414-
"id": "A 'Not enough memory resources are available' error can be caused by too many credentials already stored in Windows Credential Manager",
2415-
"message": "A 'Not enough memory resources are available' error can be caused by too many credentials already stored in Windows Credential Manager",
2416-
"translation": "Der Fehler \"Not enough memory resources are available\" (Nicht genügend Arbeitsspeicherressourcen sind verfügbar) kann durch zu viele Anmeldeinformationen verursacht werden, die bereits in Windows Anmeldeinformations-Manager gespeichert sind",
2417-
"translatorComment": "Copied from source.",
2418-
"fuzzy": true
2419-
},
2420-
{
2421-
"id": "Failed to write credential to Windows Credential Manager",
2422-
"message": "Failed to write credential to Windows Credential Manager",
2423-
"translation": "Fehler beim Schreiben der Anmeldeinformationen in Windows Anmeldeinformations-Manager",
2424-
"translatorComment": "Copied from source.",
2425-
"fuzzy": true
2426-
},
24272404
{
24282405
"id": "The -L parameter can not be used in combination with other parameters.",
24292406
"message": "The -L parameter can not be used in combination with other parameters.",

internal/translations/locales/en-US/out.gotext.json

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@
4747
"fuzzy": true
4848
},
4949
{
50-
"id": "configuration file",
51-
"message": "configuration file",
52-
"translation": "configuration file",
50+
"id": "configuration file (supported extensions: .yaml, .yml, .json, .toml, .ini, .env, .properties)",
51+
"message": "configuration file (supported extensions: .yaml, .yml, .json, .toml, .ini, .env, .properties)",
52+
"translation": "configuration file (supported extensions: .yaml, .yml, .json, .toml, .ini, .env, .properties)",
5353
"translatorComment": "Copied from source.",
5454
"fuzzy": true
5555
},
@@ -2403,27 +2403,6 @@
24032403
"translatorComment": "Copied from source.",
24042404
"fuzzy": true
24052405
},
2406-
{
2407-
"id": "Press Ctrl+C to exit this process...",
2408-
"message": "Press Ctrl+C to exit this process...",
2409-
"translation": "Press Ctrl+C to exit this process...",
2410-
"translatorComment": "Copied from source.",
2411-
"fuzzy": true
2412-
},
2413-
{
2414-
"id": "A 'Not enough memory resources are available' error can be caused by too many credentials already stored in Windows Credential Manager",
2415-
"message": "A 'Not enough memory resources are available' error can be caused by too many credentials already stored in Windows Credential Manager",
2416-
"translation": "A 'Not enough memory resources are available' error can be caused by too many credentials already stored in Windows Credential Manager",
2417-
"translatorComment": "Copied from source.",
2418-
"fuzzy": true
2419-
},
2420-
{
2421-
"id": "Failed to write credential to Windows Credential Manager",
2422-
"message": "Failed to write credential to Windows Credential Manager",
2423-
"translation": "Failed to write credential to Windows Credential Manager",
2424-
"translatorComment": "Copied from source.",
2425-
"fuzzy": true
2426-
},
24272406
{
24282407
"id": "The -L parameter can not be used in combination with other parameters.",
24292408
"message": "The -L parameter can not be used in combination with other parameters.",

internal/translations/locales/es-ES/out.gotext.json

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,9 @@
4747
"fuzzy": true
4848
},
4949
{
50-
"id": "configuration file",
51-
"message": "configuration file",
52-
"translation": "archivo de configuración",
53-
"translatorComment": "Copied from source.",
54-
"fuzzy": true
50+
"id": "configuration file (supported extensions: .yaml, .yml, .json, .toml, .ini, .env, .properties)",
51+
"message": "configuration file (supported extensions: .yaml, .yml, .json, .toml, .ini, .env, .properties)",
52+
"translation": ""
5553
},
5654
{
5755
"id": "log level, error=0, warn=1, info=2, debug=3, trace=4",
@@ -2403,27 +2401,6 @@
24032401
"translatorComment": "Copied from source.",
24042402
"fuzzy": true
24052403
},
2406-
{
2407-
"id": "Press Ctrl+C to exit this process...",
2408-
"message": "Press Ctrl+C to exit this process...",
2409-
"translation": "Presione Ctrl+C para salir de este proceso...",
2410-
"translatorComment": "Copied from source.",
2411-
"fuzzy": true
2412-
},
2413-
{
2414-
"id": "A 'Not enough memory resources are available' error can be caused by too many credentials already stored in Windows Credential Manager",
2415-
"message": "A 'Not enough memory resources are available' error can be caused by too many credentials already stored in Windows Credential Manager",
2416-
"translation": "Un error \"No hay suficientes recursos de memoria disponibles\" puede deberse a que ya hay demasiadas credenciales almacenadas en Windows Administrador de credenciales",
2417-
"translatorComment": "Copied from source.",
2418-
"fuzzy": true
2419-
},
2420-
{
2421-
"id": "Failed to write credential to Windows Credential Manager",
2422-
"message": "Failed to write credential to Windows Credential Manager",
2423-
"translation": "No se pudo escribir la credencial en Windows Administrador de credenciales",
2424-
"translatorComment": "Copied from source.",
2425-
"fuzzy": true
2426-
},
24272404
{
24282405
"id": "The -L parameter can not be used in combination with other parameters.",
24292406
"message": "The -L parameter can not be used in combination with other parameters.",

internal/translations/locales/fr-FR/out.gotext.json

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,9 @@
4747
"fuzzy": true
4848
},
4949
{
50-
"id": "configuration file",
51-
"message": "configuration file",
52-
"translation": "fichier de configuration",
53-
"translatorComment": "Copied from source.",
54-
"fuzzy": true
50+
"id": "configuration file (supported extensions: .yaml, .yml, .json, .toml, .ini, .env, .properties)",
51+
"message": "configuration file (supported extensions: .yaml, .yml, .json, .toml, .ini, .env, .properties)",
52+
"translation": ""
5553
},
5654
{
5755
"id": "log level, error=0, warn=1, info=2, debug=3, trace=4",
@@ -2403,27 +2401,6 @@
24032401
"translatorComment": "Copied from source.",
24042402
"fuzzy": true
24052403
},
2406-
{
2407-
"id": "Press Ctrl+C to exit this process...",
2408-
"message": "Press Ctrl+C to exit this process...",
2409-
"translation": "Appuyez sur Ctrl+C pour quitter ce processus...",
2410-
"translatorComment": "Copied from source.",
2411-
"fuzzy": true
2412-
},
2413-
{
2414-
"id": "A 'Not enough memory resources are available' error can be caused by too many credentials already stored in Windows Credential Manager",
2415-
"message": "A 'Not enough memory resources are available' error can be caused by too many credentials already stored in Windows Credential Manager",
2416-
"translation": "Une erreur \"Pas assez de ressources mémoire disponibles\" peut être causée par trop d'informations d'identification déjà stockées dans Windows Credential Manager",
2417-
"translatorComment": "Copied from source.",
2418-
"fuzzy": true
2419-
},
2420-
{
2421-
"id": "Failed to write credential to Windows Credential Manager",
2422-
"message": "Failed to write credential to Windows Credential Manager",
2423-
"translation": "Échec de l'écriture des informations d'identification dans le gestionnaire d'informations d'identification Windows",
2424-
"translatorComment": "Copied from source.",
2425-
"fuzzy": true
2426-
},
24272404
{
24282405
"id": "The -L parameter can not be used in combination with other parameters.",
24292406
"message": "The -L parameter can not be used in combination with other parameters.",

internal/translations/locales/it-IT/out.gotext.json

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,9 @@
4747
"fuzzy": true
4848
},
4949
{
50-
"id": "configuration file",
51-
"message": "configuration file",
52-
"translation": "file di configurazione",
53-
"translatorComment": "Copied from source.",
54-
"fuzzy": true
50+
"id": "configuration file (supported extensions: .yaml, .yml, .json, .toml, .ini, .env, .properties)",
51+
"message": "configuration file (supported extensions: .yaml, .yml, .json, .toml, .ini, .env, .properties)",
52+
"translation": ""
5553
},
5654
{
5755
"id": "log level, error=0, warn=1, info=2, debug=3, trace=4",
@@ -2403,27 +2401,6 @@
24032401
"translatorComment": "Copied from source.",
24042402
"fuzzy": true
24052403
},
2406-
{
2407-
"id": "Press Ctrl+C to exit this process...",
2408-
"message": "Press Ctrl+C to exit this process...",
2409-
"translation": "Premere CTRL+C per uscire dal processo...",
2410-
"translatorComment": "Copied from source.",
2411-
"fuzzy": true
2412-
},
2413-
{
2414-
"id": "A 'Not enough memory resources are available' error can be caused by too many credentials already stored in Windows Credential Manager",
2415-
"message": "A 'Not enough memory resources are available' error can be caused by too many credentials already stored in Windows Credential Manager",
2416-
"translation": "Un errore 'Risorse di memoria insufficienti' può essere causato da troppe credenziali già archiviate in Gestione credenziali di Windows",
2417-
"translatorComment": "Copied from source.",
2418-
"fuzzy": true
2419-
},
2420-
{
2421-
"id": "Failed to write credential to Windows Credential Manager",
2422-
"message": "Failed to write credential to Windows Credential Manager",
2423-
"translation": "Impossibile scrivere le credenziali in Gestione credenziali di Windows",
2424-
"translatorComment": "Copied from source.",
2425-
"fuzzy": true
2426-
},
24272404
{
24282405
"id": "The -L parameter can not be used in combination with other parameters.",
24292406
"message": "The -L parameter can not be used in combination with other parameters.",

internal/translations/locales/ja-JP/out.gotext.json

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,9 @@
4747
"fuzzy": true
4848
},
4949
{
50-
"id": "configuration file",
51-
"message": "configuration file",
52-
"translation": "構成ファイル",
53-
"translatorComment": "Copied from source.",
54-
"fuzzy": true
50+
"id": "configuration file (supported extensions: .yaml, .yml, .json, .toml, .ini, .env, .properties)",
51+
"message": "configuration file (supported extensions: .yaml, .yml, .json, .toml, .ini, .env, .properties)",
52+
"translation": ""
5553
},
5654
{
5755
"id": "log level, error=0, warn=1, info=2, debug=3, trace=4",
@@ -2403,27 +2401,6 @@
24032401
"translatorComment": "Copied from source.",
24042402
"fuzzy": true
24052403
},
2406-
{
2407-
"id": "Press Ctrl+C to exit this process...",
2408-
"message": "Press Ctrl+C to exit this process...",
2409-
"translation": "Ctrl + C を押して、このプロセスを終了します...",
2410-
"translatorComment": "Copied from source.",
2411-
"fuzzy": true
2412-
},
2413-
{
2414-
"id": "A 'Not enough memory resources are available' error can be caused by too many credentials already stored in Windows Credential Manager",
2415-
"message": "A 'Not enough memory resources are available' error can be caused by too many credentials already stored in Windows Credential Manager",
2416-
"translation": "Windows 資格情報マネージャーに既に格納されている資格情報が多すぎるため、'十分なメモリ リソースがありません' というエラーが発生した可能性があります",
2417-
"translatorComment": "Copied from source.",
2418-
"fuzzy": true
2419-
},
2420-
{
2421-
"id": "Failed to write credential to Windows Credential Manager",
2422-
"message": "Failed to write credential to Windows Credential Manager",
2423-
"translation": "Windows 資格情報マネージャーに資格情報を書き込めませんでした",
2424-
"translatorComment": "Copied from source.",
2425-
"fuzzy": true
2426-
},
24272404
{
24282405
"id": "The -L parameter can not be used in combination with other parameters.",
24292406
"message": "The -L parameter can not be used in combination with other parameters.",

internal/translations/locales/ko-KR/out.gotext.json

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,9 @@
4747
"fuzzy": true
4848
},
4949
{
50-
"id": "configuration file",
51-
"message": "configuration file",
52-
"translation": "구성 파일",
53-
"translatorComment": "Copied from source.",
54-
"fuzzy": true
50+
"id": "configuration file (supported extensions: .yaml, .yml, .json, .toml, .ini, .env, .properties)",
51+
"message": "configuration file (supported extensions: .yaml, .yml, .json, .toml, .ini, .env, .properties)",
52+
"translation": ""
5553
},
5654
{
5755
"id": "log level, error=0, warn=1, info=2, debug=3, trace=4",
@@ -2403,27 +2401,6 @@
24032401
"translatorComment": "Copied from source.",
24042402
"fuzzy": true
24052403
},
2406-
{
2407-
"id": "Press Ctrl+C to exit this process...",
2408-
"message": "Press Ctrl+C to exit this process...",
2409-
"translation": "Ctrl+C를 눌러 이 프로세스를 종료합니다...",
2410-
"translatorComment": "Copied from source.",
2411-
"fuzzy": true
2412-
},
2413-
{
2414-
"id": "A 'Not enough memory resources are available' error can be caused by too many credentials already stored in Windows Credential Manager",
2415-
"message": "A 'Not enough memory resources are available' error can be caused by too many credentials already stored in Windows Credential Manager",
2416-
"translation": "Windows 자격 증명 관리자에 이미 저장된 자격 증명이 너무 많으면 '사용 가능한 메모리 리소스가 부족합니다' 오류가 발생할 수 있습니다.",
2417-
"translatorComment": "Copied from source.",
2418-
"fuzzy": true
2419-
},
2420-
{
2421-
"id": "Failed to write credential to Windows Credential Manager",
2422-
"message": "Failed to write credential to Windows Credential Manager",
2423-
"translation": "Windows 자격 증명 관리자에 자격 증명을 쓰지 못했습니다.",
2424-
"translatorComment": "Copied from source.",
2425-
"fuzzy": true
2426-
},
24272404
{
24282405
"id": "The -L parameter can not be used in combination with other parameters.",
24292406
"message": "The -L parameter can not be used in combination with other parameters.",

0 commit comments

Comments
 (0)