Skip to content

Commit

Permalink
Refactor to new actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
lexbritvin committed Dec 22, 2024
1 parent ec8f217 commit 22e6dc9
Show file tree
Hide file tree
Showing 8 changed files with 319 additions and 262 deletions.
48 changes: 48 additions & 0 deletions action.add.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
runtime: plugin
action:
title: Compose add
description: >-
Add a new package to plasma-compose
options:
- name: allow-create
title: Allow create
description: Create plasma-compose if not exist
type: boolean
default: false
- name: package
title: Name
description: Name of the package
type: string
default: ""
- name: type
title: Type
description: "Type of the package source: git, http"
type: string
enum: [git, http]
default: git
- name: ref
title: Ref
description: Reference of the package source
type: string
default: ""
- name: tag
title: Tag
description: Tag of the package source
type: string
default: ""
- name: url
title: URL
description: URL of the package source
type: string
default: ""
- name: strategy
title: Strategy
description: Strategy name
type: array
default: []
- name: strategy-path
title: Strategy path
description: >-
Strategy paths. paths separated by |, strategies are comma separated (path/1|path/2,path/1|path/2)
type: array
default: []
33 changes: 33 additions & 0 deletions action.compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
runtime: plugin
action:
title: Compose
description: >-
Composes filesystem (files & dirs)
options:
- name: working-dir
shorthand: w
title: Working directory
description: Working directory for temp files
type: string
default: .compose/packages
- name: skip-not-versioned
shorthand: s
title: Skip unversioned
description: Skip not versioned files from source directory (git only)
type: boolean
default: false
- name: conflicts-verbosity
title: Conflicts verbosity
description: Log files conflicts
type: boolean
default: false
- name: clean
title: Timeout
description: Remove .compose dir on start
type: boolean
default: false
- name: interactive
title: Interactive
description: Interactive mode allows to submit user credentials during action
type: boolean
default: true
11 changes: 11 additions & 0 deletions action.delete.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
runtime: plugin
action:
title: Compose delete
description: >-
Remove a package from plasma-compose
options:
- name: packages
title: Packages
description: List of packages to remove. Comma separated.
type: array
default: []
43 changes: 43 additions & 0 deletions action.update.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
runtime: plugin
action:
title: Compose update
description: >-
Update a plasma-compose package
options:
- name: package
title: Name
description: Name of the package
type: string
default: ""
- name: type
title: Type
description: "Type of the package source: git, http"
type: string
enum: [git, http]
default: git
- name: ref
title: Ref
description: Reference of the package source
type: string
default: ""
- name: tag
title: Tag
description: Tag of the package source
type: string
default: ""
- name: url
title: URL
description: URL of the package source
type: string
default: ""
- name: strategy
title: Strategy
description: Strategy name
type: array
default: []
- name: strategy-path
title: Strategy path
description: >-
Strategy paths. paths separated by |, strategies are comma separated (path/1|path/2,path/1|path/2)
type: array
default: []
46 changes: 0 additions & 46 deletions compose/cobra.go

This file was deleted.

51 changes: 26 additions & 25 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ require (
dario.cat/mergo v1.0.1
github.com/charmbracelet/huh v0.6.0
github.com/go-git/go-git/v5 v5.12.0
github.com/launchrctl/keyring v0.2.5
github.com/launchrctl/launchr v0.16.4
github.com/launchrctl/keyring v0.2.6
github.com/launchrctl/launchr v0.16.5-0.20241222204415-24d5b3d7ff0c
github.com/stevenle/topsort v0.2.0
gopkg.in/yaml.v3 v3.0.1
)
Expand All @@ -16,25 +16,25 @@ require (
atomicgo.dev/cursor v0.2.0 // indirect
atomicgo.dev/keyboard v0.2.9 // indirect
atomicgo.dev/schedule v0.1.0 // indirect
filippo.io/age v1.2.0 // indirect
filippo.io/age v1.2.1 // indirect
github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 // indirect
github.com/Microsoft/go-winio v0.6.2 // indirect
github.com/ProtonMail/go-crypto v1.0.0 // indirect
github.com/ProtonMail/go-crypto v1.1.3 // indirect
github.com/atotto/clipboard v0.1.4 // indirect
github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect
github.com/catppuccin/go v0.2.0 // indirect
github.com/charmbracelet/bubbles v0.20.0 // indirect
github.com/charmbracelet/bubbletea v1.1.1 // indirect
github.com/charmbracelet/lipgloss v0.13.1 // indirect
github.com/charmbracelet/x/ansi v0.3.2 // indirect
github.com/charmbracelet/x/exp/strings v0.0.0-20241022174419-46d9bb99a691 // indirect
github.com/charmbracelet/x/term v0.2.0 // indirect
github.com/charmbracelet/bubbletea v1.2.4 // indirect
github.com/charmbracelet/lipgloss v1.0.0 // indirect
github.com/charmbracelet/x/ansi v0.6.0 // indirect
github.com/charmbracelet/x/exp/strings v0.0.0-20241222104055-e1130b311607 // indirect
github.com/charmbracelet/x/term v0.2.1 // indirect
github.com/cloudflare/circl v1.5.0 // indirect
github.com/containerd/console v1.0.4 // indirect
github.com/containerd/log v0.1.0 // indirect
github.com/cyphar/filepath-securejoin v0.3.4 // indirect
github.com/cyphar/filepath-securejoin v0.3.6 // indirect
github.com/distribution/reference v0.6.0 // indirect
github.com/docker/docker v27.3.1+incompatible // indirect
github.com/docker/docker v27.4.1+incompatible // indirect
github.com/docker/go-connections v0.5.0 // indirect
github.com/docker/go-units v0.5.0 // indirect
github.com/dustin/go-humanize v1.0.1 // indirect
Expand All @@ -46,7 +46,7 @@ require (
github.com/go-logr/logr v1.4.2 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8 // indirect
github.com/gookit/color v1.5.4 // indirect
github.com/grpc-ecosystem/grpc-gateway/v2 v2.20.0 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
Expand Down Expand Up @@ -78,28 +78,29 @@ require (
github.com/opencontainers/image-spec v1.1.0 // indirect
github.com/pjbgf/sha1cd v0.3.0 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/pterm/pterm v0.12.79 // indirect
github.com/pterm/pterm v0.12.80 // indirect
github.com/rivo/uniseg v0.4.7 // indirect
github.com/santhosh-tekuri/jsonschema/v5 v5.3.1 // indirect
github.com/santhosh-tekuri/jsonschema/v6 v6.0.1 // indirect
github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 // indirect
github.com/sirupsen/logrus v1.9.3 // indirect
github.com/skeema/knownhosts v1.3.0 // indirect
github.com/spf13/cobra v1.8.1 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/xanzy/ssh-agent v0.3.3 // indirect
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.56.0 // indirect
go.opentelemetry.io/otel v1.31.0 // indirect
go.opentelemetry.io/otel/metric v1.31.0 // indirect
go.opentelemetry.io/otel/trace v1.31.0 // indirect
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.58.0 // indirect
go.opentelemetry.io/otel v1.33.0 // indirect
go.opentelemetry.io/otel/metric v1.33.0 // indirect
go.opentelemetry.io/otel/trace v1.33.0 // indirect
go.uber.org/mock v0.5.0 // indirect
golang.org/x/crypto v0.28.0 // indirect
golang.org/x/mod v0.21.0 // indirect
golang.org/x/net v0.30.0 // indirect
golang.org/x/sync v0.8.0 // indirect
golang.org/x/sys v0.26.0 // indirect
golang.org/x/term v0.25.0 // indirect
golang.org/x/text v0.19.0 // indirect
golang.org/x/crypto v0.31.0 // indirect
golang.org/x/mod v0.22.0 // indirect
golang.org/x/net v0.33.0 // indirect
golang.org/x/sync v0.10.0 // indirect
golang.org/x/sys v0.28.0 // indirect
golang.org/x/term v0.27.0 // indirect
golang.org/x/text v0.21.0 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20241007155032-5fefd90f89a9 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20241007155032-5fefd90f89a9 // indirect
gopkg.in/warnings.v0 v0.1.2 // indirect
Expand Down
Loading

0 comments on commit 22e6dc9

Please sign in to comment.