File tree Expand file tree Collapse file tree
remove-json-keys/src/remove_json_keys/lib
translate-messages/src/translate_messages/lib Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,12 +35,12 @@ def config_file(cli: sn) -> None: # for --init
3535 return
3636
3737 # Fetch/write from jsDelivr
38- if not getattr (cli , 'default_file_config ' , '' ):
38+ if not getattr (config_file , 'cached_default ' , None ):
3939 from . import jsdelivr , url
4040 jsd_url = f'{ jsdelivr .create_pkg_ver_url (cli )} /{ target_path .name } '
4141 log .debug (f'{ log .colors .bw } { jsd_url } ' )
42- cli . default_file_config = url .get (jsd_url )
43- data .file .write (str (target_path ), cli . default_file_config )
42+ config_file . cached_default = url .get (jsd_url )
43+ data .file .write (str (target_path ), config_file . cached_default )
4444 log .success (f'{ cli .msgs .log_DEFAULT_CONFIG_CREATED_AT } { target_path } ' )
4545 if not in_project_root : log .tip (f'{ cli .msgs .tip_MOVE_CONFIG_TO_ROOT } .' )
4646
Original file line number Diff line number Diff line change @@ -35,12 +35,12 @@ def config_file(cli: sn) -> None: # for --init
3535 return
3636
3737 # Fetch/write from jsDelivr
38- if not getattr (cli , 'default_file_config ' , '' ):
38+ if not getattr (config_file , 'cached_default ' , None ):
3939 from . import jsdelivr , url
4040 jsd_url = f'{ jsdelivr .create_pkg_ver_url (cli )} /{ target_path .name } '
4141 log .debug (f'{ log .colors .bw } { jsd_url } ' )
42- cli . default_file_config = url .get (jsd_url )
43- data .file .write (str (target_path ), cli . default_file_config )
42+ config_file . cached_default = url .get (jsd_url )
43+ data .file .write (str (target_path ), config_file . cached_default )
4444 log .success (f'{ cli .msgs .log_DEFAULT_CONFIG_CREATED_AT } { target_path } ' )
4545 if not in_project_root : log .tip (f'{ cli .msgs .tip_MOVE_CONFIG_TO_ROOT } .' )
4646
You can’t perform that action at this time.
0 commit comments