# Path: gg/state.py
# def load_config(configfile, key):
#     # like read() but returning specifically the state for the current repo
#     key = f"{get_repo_name()}:_config:{key}"
#     return read(configfile)[key]
# 
# def update_config(configfile, **kwargs):
#     state = read(configfile)
#     for key, value in kwargs.items():
#         state[f"{get_repo_name()}:_config:{key}"] = value
#     write(configfile, state)
# 
# Path: gg/main.py
# DEFAULT_CONFIGFILE = os.path.expanduser("~/.gg.json")
# class Config:
#     def __init__(self):
# def cli(config, configfile, verbose):


import json
import click
from gg.state import load_config, update_config
from gg.main import cli, pass_config




@cli.command()
@click.option(
    "--push-to-origin",
    default="",
    help="Push to the origin instead of your fork (true or false)",
)
@click.option(
    "--toggle-fixes-message",
    is_flag=True,

# Path: gg/state.py
# def load_config(configfile, key):
#     # like read() but returning specifically the state for the current repo
#     key = f"{get_repo_name()}:_config:{key}"
#     return read(configfile)[key]
# 
# def update_config(configfile, **kwargs):
#     state = read(configfile)
#     for key, value in kwargs.items():
#         state[f"{get_repo_name()}:_config:{key}"] = value
#     write(configfile, state)
# 
# Path: gg/main.py
# DEFAULT_CONFIGFILE = os.path.expanduser("~/.gg.json")
# class Config:
#     def __init__(self):
# def cli(config, configfile, verbose):


# Path: gg/builtins/local_config.py
import json
import click
from gg.state import load_config, update_config
from gg.main import cli, pass_config





@cli.command()
@click.option(
    "--push-to-origin",
    default="",
    help="Push to the origin instead of your fork (true or false)",
)
@click.option(
    "--toggle-fixes-message",
    is_flag=True,

    default=False,