Skip to content

Commit

Permalink
nit fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulunair committed Feb 14, 2021
1 parent 164fc90 commit b10c310
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/repo_peek/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import os
from pathlib import Path

config_file = Path.home() / ".githubkeep.ini"
config_file = Path.home() / ".repk.ini"
config_text = """
[DEFAULT]
editor = "vim"
Expand Down
2 changes: 1 addition & 1 deletion src/repo_peek/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@


class Config:
def __init__(self, cfg_file=".githubkeep.ini"):
def __init__(self, cfg_file=".repk.ini"):
self.config_file = Path.home() / cfg_file
self.config = configparser.ConfigParser()
self.config.read(self.config_file)
Expand Down
6 changes: 3 additions & 3 deletions src/repo_peek/fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ def rm_stored_repos(home_dir):


async def peek_repo(repo: str, service="github"):
parsed_config = Config(".githubkeep.ini")
cache_dir = Path.home() / ".githubkeep"
parsed_config = Config(".repk.ini")
cache_dir = Path.home() / ".repk"
repo_dir = init_dir(cache_dir / "repos" / repo)
if os.path.isdir(repo_dir) and os.listdir(repo_dir):
await open_editor(path=repo_dir)
else:
parsed_config = Config(".githubkeep.ini")
parsed_config = Config(".repk.ini")
tar_dirs = init_dir(cache_dir / "tars")
logger.info("fetching repo: {}".format(repo))
parsed_config.config.remove_section(repo)
Expand Down
2 changes: 1 addition & 1 deletion src/repo_peek/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

logger.remove()
logger.add(
Path.home() / ".githubkeep.log",
Path.home() / ".repk.log",
format="{time:YYYY-MM-DD at HH:mm:ss} | {level} | {message}",
)

0 comments on commit b10c310

Please sign in to comment.