arrow2nd / anct Goto Github PK
View Code? Open in Web Editor NEW📺 Unofficial CLI Client of Annict
Home Page: https://www.arrow2nd.com/works/anct
License: MIT License
📺 Unofficial CLI Client of Annict
Home Page: https://www.arrow2nd.com/works/anct
License: MIT License
Season
の形式は YYYY-SeasonName
(例: 2022-winter
)
search works
library
認証情報は ~/.config/annict-for-term/.cred.toml
に保存
対応しているターミナルかをみて、必要に応じて表示処理を飛ばしたい
参考になりそう
https://github.com/mattn/longcat/blob/46ee941fd9431dddfe0b6d06aacb6ff8f8b9710e/main.go#L229-L279
GitHub CLI みたいに e でエディタ起動、Enter でスキップできるようにしたい
anct search characters [keyword]
キャラクターを検索して結果を表示します
anct search characters 後藤
NAME SERIES WORK ID
----------------------------------------
後藤ひとり ぼっち・ざ・ろっく! 2074
後藤姫 かくしごと 1103
briandowns/spinner
library
コマンドを廃止して共通関数にする
title, 各評価はスキップ可能
credencial
-> config
client
-> api
The series
field is set to non-null, but an error occurs and cannot be retrieved correctly because there are characters whose works have not yet been registered in the database.
https://developers.annict.com/docs/graphql-api/beta/reference/objects/character
query {
searchCharacters(
names: ["後藤"],
orderBy: { field: FAVORITE_CHARACTERS_COUNT, direction: DESC },
first: 5
) {
edges {
node {
annictId
name
series{
name
}
}
}
}
}
{
"data": {
"searchCharacters": {
"edges": [
{
"node": {
"annictId": 41078,
"name": "後藤ひとり",
"series": {
"name": "ぼっち・ざ・ろっく!"
}
}
},
{
"node": null
},
{
"node": {
"annictId": 36039,
"name": "後藤姫",
"series": {
"name": "かくしごと"
}
}
},
{
"node": {
"annictId": 36038,
"name": "後藤可久士",
"series": {
"name": "かくしごと"
}
}
},
{
"node": null
}
]
}
},
"errors": [
{
"message": "Cannot return null for non-nullable field Character.series"
},
{
"message": "Cannot return null for non-nullable field Character.series"
}
]
}
sixel で画像出すのおもしろかったので使いたい
作品選択 -> 詳細出力とかでもいいかも
anct library [options]
自分のライブラリを表示します
-s
, --status
anct library
? Watch status
> watching
wanna watch
watched
on hold
stop watching
ID TITLE MEDIA SEASON YEAR
----------------------------------------
hogehoge...
search works
限定のフラグになっているので共通化する
不便
Lines 11 to 15 in aaff4bc
int
から exitCode
に変える作品の絞り込みに fzf 使ってるけど、survey でも似たようなことできる気がする
視聴中作品の未視聴エピソードを表示
お行儀がなってない
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.