File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 1- ## Usage
1+ ## Environment variables
22
3- The environment variable ` TMC_CORE_CLI_ROOT_URL ` can be used to set the TMC server url.
3+ | var name | usage |
4+ | ---------------------- | -------------------------- |
5+ | ` TMC_LANGS_ROOT_URL ` | Sets the TMC server url. |
6+ | ` TMC_LANGS_CONFIG_DIR ` | Sets the config directory. |
Original file line number Diff line number Diff line change @@ -548,7 +548,7 @@ fn run() -> Result<()> {
548548 // core
549549 if let Some ( matches) = matches. subcommand_matches ( "core" ) {
550550 let root_url =
551- env:: var ( "TMC_CORE_CLI_ROOT_URL " ) . unwrap_or_else ( |_| "https://tmc.mooc.fi" . to_string ( ) ) ;
551+ env:: var ( "TMC_LANGS_ROOT_URL " ) . unwrap_or_else ( |_| "https://tmc.mooc.fi" . to_string ( ) ) ;
552552 let mut core = TmcCore :: new_in_config ( root_url)
553553 . with_context ( || format ! ( "Failed to create TmcCore" ) ) ?;
554554 // set progress report to print the updates to stdout as JSON
@@ -558,7 +558,7 @@ fn run() -> Result<()> {
558558 let client_name = matches. value_of ( "client-name" ) . unwrap ( ) ;
559559 let tmc_dir = format ! ( "tmc-{}" , client_name) ;
560560
561- let config_dir = match env:: var ( "TMC_LANGS_CLI_CONFIG_DIR " ) {
561+ let config_dir = match env:: var ( "TMC_LANGS_CONFIG_DIR " ) {
562562 Ok ( v) => PathBuf :: from ( v) ,
563563 Err ( _) => dirs:: config_dir ( ) . context ( "Failed to find config directory" ) ?,
564564 } ;
You can’t perform that action at this time.
0 commit comments