-
-
Notifications
You must be signed in to change notification settings - Fork 132
Migrate cli lookup from Cliffy to Optique
#390
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 40 commits
Commits
Show all changes
51 commits
Select commit
Hold shift + click to select a range
1753f96
feat: setup project for cli with optique
sij411 49cd086
feat: add skeletons
sij411 b67763e
feat: add options for lookup
sij411 be5391e
chores: add packages
sij411 71cf164
feat: implement lookup with format and output options with optique
sij411 c14e80a
refactor: implement dependent options with flag
sij411 ee1b5bb
refactor: change writeObjectToStream's params
sij411 1e92c70
test: test for lookup optique imple
sij411 bec2852
chores: update optique version to 0.3.0
sij411 211112a
chores: remove redundancy
sij411 cb799ce
fix: remove relative import
sij411 be3fd5d
fix: add time sleep to wait the content is written in file
sij411 9bc4166
fix: replace cli-optique to cli
sij411 94ad983
chores: update pnpm-lock.yaml
sij411 c2f55ac
feat: setup project for cli with optique
sij411 6efb903
feat: add skeletons
sij411 e53de66
feat: add options for lookup
sij411 d78d2c2
chores: add packages
sij411 ec3acaf
feat: implement lookup with format and output options with optique
sij411 9a71ab4
refactor: implement dependent options with flag
sij411 045c8e8
refactor: change writeObjectToStream's params
sij411 146e6a1
test: test for lookup optique imple
sij411 d4a91fd
chores: update optique version to 0.3.0
sij411 ea8bf3d
chores: remove redundancy
sij411 54a6920
fix: remove relative import
sij411 73dce61
fix: add time sleep to wait the content is written in file
sij411 9ffada4
fix: replace cli-optique to cli
sij411 bdcb7e3
chores: update pnpm-lock.yaml
sij411 973f58a
chores: resovle pnpm-lock merge conflict with next
sij411 fa8d91f
Merge branch 'next' into feat/optique
sij411 716a6fa
chores: update pnpm lock
sij411 656c5e5
Merge branch 'feat/optique' of https://github.com/sij411/fedify into …
sij411 8052ed9
chores: remove original tunnel test
sij411 945d67a
feat: add pack.ts
sij411 6dec69e
feat: add pack.ts
sij411 8712a26
Merge branch 'feat/optique' of https://github.com/sij411/fedify into …
sij411 1b343a9
chores: update pnpm-lock
sij411 4d77a9c
fix: add pack command
sij411 9203681
feat: add README
sij411 53e492c
chores: exclude zip file
sij411 7ca0d59
fix: apply requested changes
sij411 df369e0
fix: wrap lookup parser with command to work lookup as a subcommand
sij411 fc96a90
feat(log): add log script
sij411 37d1188
feat(log): add debug option gloabally
sij411 f2bda78
feat(log): register debug option for every subcommands
sij411 e5bacbe
fix: move debug configurelogging to each subcommand
sij411 609e0dc
fix: add PORT value range
sij411 6b7cdef
Merge remote-tracking branch 'upstream/next' into feat/optique
sij411 5f11b65
Merge remote-tracking branch 'upstream/next' into feat/optique
sij411 fa06f6b
Merge branch 'feat/optique' of https://github.com/sij411/fedify into …
sij411 a8ede25
fix: update pnpm-lock.yaml
sij411 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 was deleted.
Oops, something went wrong.
This file contains hidden or 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,24 @@ | ||
| import { | ||
| command, | ||
| constant, | ||
| type InferValue, | ||
| message, | ||
| object, | ||
| } from "@optique/core"; | ||
|
|
||
| export const inboxCommand = command( | ||
| "inbox", | ||
| object({ | ||
| command: constant("inbox"), | ||
| }), | ||
| { | ||
| description: | ||
| message`Spins up an ephemeral server that serves the ActivityPub inbox with an one-time actor, through a short-lived public DNS with HTTPS. You can monitor the incoming activities in real-time.`, | ||
| }, | ||
| ); | ||
|
|
||
| export function runInbox( | ||
| command: InferValue<typeof inboxCommand>, | ||
| ) { | ||
| console.debug(command); | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.