feat(*.liquid): apply prettier to liquid templates
- offer to create tag when none is found while adding a link from cli - fix tag display in search
This commit is contained in:
parent
49e21d574e
commit
efe701f939
112 changed files with 1319 additions and 1134 deletions
|
@ -1,24 +1,24 @@
|
|||
import inquirer from 'inquirer';
|
||||
import { addPost } from './addPost.js';
|
||||
import { addLinkToShare } from './addLinkToShare.js';
|
||||
import { addEpisodeToShow } from './addEpisodeToShow.js';
|
||||
import { updateReadingProgress } from './updateReadingProgress.js';
|
||||
import { addBlockedRobot } from './addBlockedRobot.js';
|
||||
import inquirer from "inquirer";
|
||||
import { addPost } from "./addPost.js";
|
||||
import { addLinkToShare } from "./addLinkToShare.js";
|
||||
import { addEpisodeToShow } from "./addEpisodeToShow.js";
|
||||
import { updateReadingProgress } from "./updateReadingProgress.js";
|
||||
import { addBlockedRobot } from "./addBlockedRobot.js";
|
||||
|
||||
const TASKS = [
|
||||
{ name: '📄 Add post', handler: addPost },
|
||||
{ name: '🔗 Add link to share', handler: addLinkToShare },
|
||||
{ name: '➕ Add episode to show', handler: addEpisodeToShow },
|
||||
{ name: '📚 Update reading progress', handler: updateReadingProgress },
|
||||
{ name: '🤖 Block robot', handler: addBlockedRobot }
|
||||
{ name: "📄 Add post", handler: addPost },
|
||||
{ name: "🔗 Add link to share", handler: addLinkToShare },
|
||||
{ name: "➕ Add episode to show", handler: addEpisodeToShow },
|
||||
{ name: "📚 Update reading progress", handler: updateReadingProgress },
|
||||
{ name: "🤖 Block robot", handler: addBlockedRobot }
|
||||
];
|
||||
|
||||
export const runTasksMenu = async () => {
|
||||
const { task } = await inquirer.prompt([
|
||||
{
|
||||
type: 'list',
|
||||
name: 'task',
|
||||
message: 'Select a task to perform:',
|
||||
type: "list",
|
||||
name: "task",
|
||||
message: "Select a task to perform:",
|
||||
choices: TASKS.map((t) => ({ name: t.name, value: t.handler }))
|
||||
}
|
||||
]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue