Skip to content

Commit

Permalink
Fix qq/sina commands & release 0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Jedore committed Jun 28, 2024
1 parent fcbc139 commit bd0a688
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
6 changes: 6 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 0.1.1

2024-06-28

- Fix: Add qq/sina channel to commands.

## 0.1.0

2024-06-28
Expand Down
2 changes: 1 addition & 1 deletion src/openctp_ctp_channels/__about__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.1.0'
__version__ = '0.1.1'
11 changes: 9 additions & 2 deletions src/openctp_ctp_channels/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,17 @@ def check():
def switch(channel):
if 'tts' == channel:
channel = channels.TTSChannel()
channel.switch()
elif 'ctp' == channel:
channel = channels.CTPChannel()
channel.switch()
elif 'qq' == channel:
channel = channels.QQChannel()
elif 'sina' == channel:
channel = channels.SinaChannel()
else:
print("Unsupported channel!")
return

channel.switch()


@click.command(help="Show all channels.")
Expand Down

0 comments on commit bd0a688

Please sign in to comment.