-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
60aa084
commit 0720e01
Showing
5 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
"""Entrypoint for the CLI""" | ||
|
||
import typer | ||
|
||
from ref.cli import config, sync | ||
|
||
app = typer.Typer() | ||
|
||
app.command(name="sync")(sync.sync) | ||
app.add_typer(config.app, name="config") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
""" | ||
View and update the REF configuration | ||
""" | ||
|
||
import typer | ||
|
||
app = typer.Typer(help=__doc__) | ||
|
||
|
||
@app.command() | ||
def list(): | ||
""" | ||
Print the current ref configuration | ||
""" | ||
print("config") | ||
|
||
|
||
@app.command() | ||
def update(): | ||
""" | ||
Print the current ref configuration | ||
""" | ||
print("config") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import typer | ||
|
||
app = typer.Typer() | ||
|
||
|
||
@app.command() | ||
def sync(): | ||
""" | ||
Placeholder command for syncing data | ||
""" # noqa: D401 | ||
print("syncing data") |