Skip to content

Commit

Permalink
Bump
Browse files Browse the repository at this point in the history
  • Loading branch information
gschier committed Sep 6, 2024
1 parent 8fc9162 commit e31a88b
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 13 deletions.
5 changes: 4 additions & 1 deletion cmd_generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,12 @@ var generateCmd = &cobra.Command{
copyFile("tsconfig.json", pluginDir, defaultName)
copyFile("src/index.ts", pluginDir, defaultName)

primary := pterm.NewStyle(pterm.FgLightWhite, pterm.BgMagenta, pterm.Bold)

pterm.DefaultHeader.WithBackgroundStyle(primary).Println("Installing npm dependencies...")
runCmd(pluginDir, "npm", "install")
runCmd(pluginDir, "npm", "install", "@yaakapp/api")
runCmd(pluginDir, "npm", "install", "-d", "@yaakapp/cli")
runCmd(pluginDir, "npm", "install", "-D", "@yaakapp/cli")
},
}

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/yaakapp/yaakcli
module github.com/yaakapp/cli

go 1.22

Expand Down
2 changes: 1 addition & 1 deletion names.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

var adjectives = []string{
"young", "youthful", "yellow", "yielding", "yappy",
"yawning", "yummy", "yucky", "yearly",
"yawning", "yummy", "yucky", "yearly", "yester", "yeasty", "yelling",
}

var nouns = []string{
Expand Down
6 changes: 4 additions & 2 deletions template/src/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { describe, expect, test } from 'vitest';
describe('', () => {
test('Exports GET with params', () => {
import {plugin} from "./index";

describe('Example Plugin', () => {
test('Exports plugin object', () => {
expect(plugin).toBeTypeOf('object');
});
});
18 changes: 10 additions & 8 deletions template/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import {PluginDefinition} from '@yaakapp/api';
import { PluginDefinition } from "@yaakapp/api";

export const plugin: PluginDefinition = {
httpRequestActions: [{
key: 'export-curl',
label: 'Copy as Curl',
icon: 'copy',
async onSelect(ctx, args) {
console.log("Hello World!");
httpRequestActions: [
{
key: "test-example-plugin",
label: "Test Example Plugin",
icon: "cake",
async onSelect(ctx, args) {
ctx.toast.show({ variant: "success", message: "It works, have some cake!" });
},
},
}],
],
};
Binary file removed yaakcli/yaakcli
Binary file not shown.

0 comments on commit e31a88b

Please sign in to comment.