Skip to content

Commit

Permalink
Merge pull request #381 from devstream-io/feat-repo-migration
Browse files Browse the repository at this point in the history
refactor: repo migration
  • Loading branch information
IronCore864 authored Apr 2, 2022
2 parents 75e8912 + 0858895 commit ff3427b
Show file tree
Hide file tree
Showing 169 changed files with 348 additions and 348 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ We use `golangci-lint` ([official website](https://golangci-lint.run/), [GitHub]
- It can be [integrated with IDE](https://golangci-lint.run/usage/integrations/)
- You can [run it locally](https://golangci-lint.run/usage/quick-start/).

Besides, we also use the [Go Report Card](https://goreportcard.com/report/github.com/merico-dev/stream). There is a badge like [![Go Report Card](https://goreportcard.com/badge/github.com/merico-dev/stream)](https://goreportcard.com/report/github.com/merico-dev/stream) in the main README.md.
Besides, we also use the [Go Report Card](https://goreportcard.com/report/github.com/devstream-io/devstream). There is a badge like [![Go Report Card](https://goreportcard.com/badge/github.com/devstream-io/devstream)](https://goreportcard.com/report/github.com/devstream-io/devstream) in the main README.md.

### Git Commit Message

Expand Down
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ clean: ## Remove dtm and plugins. It's best to run a "clean" before "build".

.PHONY: build-core
build-core: fmt vet mod-tidy ## Build dtm core only, without plugins, locally.
go build -trimpath -gcflags="all=-N -l" -ldflags "-X github.com/merico-dev/stream/internal/pkg/version.Version=${VERSION}" -o dtm-${GOOS}-${GOARCH} ./cmd/devstream/
go build -trimpath -gcflags="all=-N -l" -ldflags "-X github.com/devstream-io/devstream/internal/pkg/version.Version=${VERSION}" -o dtm-${GOOS}-${GOARCH} ./cmd/devstream/
$(MAKE) md5-core
rm -f dtm
cp dtm-${GOOS}-${GOARCH} dtm
Expand Down Expand Up @@ -66,10 +66,10 @@ md5-plugin.%:
.PHONY: fmt
fmt: ## Run 'go fmt' & goimports against code.
go install golang.org/x/tools/cmd/goimports@latest
goimports -local="github.com/merico-dev/stream" -d -w cmd
goimports -local="github.com/merico-dev/stream" -d -w pkg
goimports -local="github.com/merico-dev/stream" -d -w internal
goimports -local="github.com/merico-dev/stream" -d -w test
goimports -local="github.com/devstream-io/devstream" -d -w cmd
goimports -local="github.com/devstream-io/devstream" -d -w pkg
goimports -local="github.com/devstream-io/devstream" -d -w internal
goimports -local="github.com/devstream-io/devstream" -d -w test
go fmt ./...

.PHONY: vet
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@

[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat&logo=github&color=2370ff&labelColor=454545)](http://makeapullrequest.com)
[![Discord](https://img.shields.io/discord/844603288082186240.svg?style=flat?label=&logo=discord&logoColor=ffffff&color=747df7&labelColor=454545)](https://discord.gg/83rDG6ydVZ)
![Test](https://github.com/merico-dev/stream/actions/workflows/main-builder.yml/badge.svg)
[![Go Report Card](https://goreportcard.com/badge/github.com/merico-dev/stream)](https://goreportcard.com/report/github.com/merico-dev/stream)
[![Downloads](https://img.shields.io/github/downloads/merico-dev/stream/total.svg)](https://github.com/merico-dev/stream/releases)
![Test](https://github.com/devstream-io/devstream/actions/workflows/main-builder.yml/badge.svg)
[![Go Report Card](https://goreportcard.com/badge/github.com/devstream-io/devstream)](https://goreportcard.com/report/github.com/devstream-io/devstream)
[![Downloads](https://img.shields.io/github/downloads/devstream-io/devstream/total.svg)](https://github.com/devstream-io/devstream/releases)

# DevStream
</div>
Expand Down Expand Up @@ -169,7 +169,7 @@ _`dtm` will read the state, then determine which tools are installed, and then r
```bash
mkdir -p ~/gocode
cd ~/gocode
git clone https://github.com/merico-dev/stream.git
git clone https://github.com/devstream-io/devstream.git
```

#### Build
Expand Down Expand Up @@ -221,7 +221,7 @@ A: Inspired by [`git`](https://github.com/git/git#readme), the name is (dependin

## Community

We will regularly organize `DevStream Community Meeting`, please visit the [wiki](https://github.com/merico-dev/stream/wiki) page for details.
We will regularly organize `DevStream Community Meeting`, please visit the [wiki](https://github.com/devstream-io/devstream/wiki) page for details.

- Message us on <a href="https://discord.com/invite/83rDG6ydVZ" target="_blank">Discord.</a>
- For Chinese users, the WeChat group QR code can be obtained from [here](docs/README_zh.md).
Expand Down
2 changes: 1 addition & 1 deletion SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ If you find a security-related bug in DevStream, we kindly ask you to disclose r

We do our best to react quickly. Sometimes, it might take a little longer (e.g. out-of-office conditions); please bear with us in these cases.

We publish security advisories using the [Git Hub Security Advisories](https://github.com/merico-dev/stream/security/advisories) feature to keep our community well informed, and will credit you for your
We publish security advisories using the [Git Hub Security Advisories](https://github.com/devstream-io/devstream/security/advisories) feature to keep our community well informed, and will credit you for your
findings (unless you prefer to stay anonymous, of course).
4 changes: 2 additions & 2 deletions cmd/devstream/apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (

"github.com/spf13/cobra"

"github.com/merico-dev/stream/internal/pkg/pluginengine"
"github.com/merico-dev/stream/pkg/util/log"
"github.com/devstream-io/devstream/internal/pkg/pluginengine"
"github.com/devstream-io/devstream/pkg/util/log"
)

var applyCMD = &cobra.Command{
Expand Down
4 changes: 2 additions & 2 deletions cmd/devstream/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (

"github.com/spf13/cobra"

"github.com/merico-dev/stream/internal/pkg/pluginengine"
"github.com/merico-dev/stream/pkg/util/log"
"github.com/devstream-io/devstream/internal/pkg/pluginengine"
"github.com/devstream-io/devstream/pkg/util/log"
)

var deleteCMD = &cobra.Command{
Expand Down
4 changes: 2 additions & 2 deletions cmd/devstream/destroy.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (

"github.com/spf13/cobra"

"github.com/merico-dev/stream/internal/pkg/pluginengine"
"github.com/merico-dev/stream/pkg/util/log"
"github.com/devstream-io/devstream/internal/pkg/pluginengine"
"github.com/devstream-io/devstream/pkg/util/log"
)

var destroyCMD = &cobra.Command{
Expand Down
4 changes: 2 additions & 2 deletions cmd/devstream/develop.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (

"github.com/spf13/cobra"

"github.com/merico-dev/stream/internal/pkg/develop"
"github.com/merico-dev/stream/pkg/util/log"
"github.com/devstream-io/devstream/internal/pkg/develop"
"github.com/devstream-io/devstream/pkg/util/log"
)

var name string
Expand Down
6 changes: 3 additions & 3 deletions cmd/devstream/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package main
import (
"github.com/spf13/cobra"

"github.com/merico-dev/stream/internal/pkg/configloader"
"github.com/merico-dev/stream/internal/pkg/pluginmanager"
"github.com/merico-dev/stream/pkg/util/log"
"github.com/devstream-io/devstream/internal/pkg/configloader"
"github.com/devstream-io/devstream/internal/pkg/pluginmanager"
"github.com/devstream-io/devstream/pkg/util/log"
)

var initCMD = &cobra.Command{
Expand Down
4 changes: 2 additions & 2 deletions cmd/devstream/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"github.com/spf13/cobra"
"github.com/spf13/viper"

"github.com/merico-dev/stream/internal/pkg/pluginengine"
"github.com/merico-dev/stream/pkg/util/log"
"github.com/devstream-io/devstream/internal/pkg/pluginengine"
"github.com/devstream-io/devstream/pkg/util/log"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions cmd/devstream/verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package main
import (
"github.com/spf13/cobra"

"github.com/merico-dev/stream/internal/pkg/pluginengine"
"github.com/merico-dev/stream/pkg/util/log"
"github.com/devstream-io/devstream/internal/pkg/pluginengine"
"github.com/devstream-io/devstream/pkg/util/log"
)

var verifyCMD = &cobra.Command{
Expand Down
2 changes: 1 addition & 1 deletion cmd/devstream/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/spf13/cobra"

"github.com/merico-dev/stream/internal/pkg/version"
"github.com/devstream-io/devstream/internal/pkg/version"
)

var versionCMD = &cobra.Command{
Expand Down
4 changes: 2 additions & 2 deletions cmd/plugin/argocd/main.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package main

import (
"github.com/merico-dev/stream/internal/pkg/plugin/argocd"
"github.com/merico-dev/stream/pkg/util/log"
"github.com/devstream-io/devstream/internal/pkg/plugin/argocd"
"github.com/devstream-io/devstream/pkg/util/log"
)

// NAME is the name of this DevStream plugin.
Expand Down
4 changes: 2 additions & 2 deletions cmd/plugin/argocdapp/main.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package main

import (
"github.com/merico-dev/stream/internal/pkg/plugin/argocdapp"
"github.com/merico-dev/stream/pkg/util/log"
"github.com/devstream-io/devstream/internal/pkg/plugin/argocdapp"
"github.com/devstream-io/devstream/pkg/util/log"
)

// NAME is the name of this DevStream plugin.
Expand Down
4 changes: 2 additions & 2 deletions cmd/plugin/devlake/main.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package main

import (
"github.com/merico-dev/stream/internal/pkg/plugin/devlake"
"github.com/merico-dev/stream/pkg/util/log"
"github.com/devstream-io/devstream/internal/pkg/plugin/devlake"
"github.com/devstream-io/devstream/pkg/util/log"
)

// NAME is the name of this DevStream plugin.
Expand Down
2 changes: 1 addition & 1 deletion cmd/plugin/github-repo-scaffolding-golang/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"log"

"github.com/merico-dev/stream/internal/pkg/plugin/reposcaffolding/github/golang"
"github.com/devstream-io/devstream/internal/pkg/plugin/reposcaffolding/github/golang"
)

// NAME is the name of this DevStream plugin.
Expand Down
4 changes: 2 additions & 2 deletions cmd/plugin/githubactions-golang/main.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package main

import (
"github.com/merico-dev/stream/internal/pkg/plugin/githubactions/golang"
"github.com/merico-dev/stream/pkg/util/log"
"github.com/devstream-io/devstream/internal/pkg/plugin/githubactions/golang"
"github.com/devstream-io/devstream/pkg/util/log"
)

// NAME is the name of this DevStream plugin.
Expand Down
4 changes: 2 additions & 2 deletions cmd/plugin/githubactions-nodejs/main.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package main

import (
"github.com/merico-dev/stream/internal/pkg/plugin/githubactions/nodejs"
"github.com/merico-dev/stream/pkg/util/log"
"github.com/devstream-io/devstream/internal/pkg/plugin/githubactions/nodejs"
"github.com/devstream-io/devstream/pkg/util/log"
)

// NAME is the name of this DevStream plugin.
Expand Down
4 changes: 2 additions & 2 deletions cmd/plugin/githubactions-python/main.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package main

import (
"github.com/merico-dev/stream/internal/pkg/plugin/githubactions/python"
"github.com/merico-dev/stream/pkg/util/log"
"github.com/devstream-io/devstream/internal/pkg/plugin/githubactions/python"
"github.com/devstream-io/devstream/pkg/util/log"
)

// NAME is the name of this DevStream plugin.
Expand Down
4 changes: 2 additions & 2 deletions cmd/plugin/gitlabci-golang/main.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package main

import (
"github.com/merico-dev/stream/internal/pkg/plugin/gitlabci/golang"
"github.com/merico-dev/stream/pkg/util/log"
"github.com/devstream-io/devstream/internal/pkg/plugin/gitlabci/golang"
"github.com/devstream-io/devstream/pkg/util/log"
)

// NAME is the name of this DevStream plugin.
Expand Down
4 changes: 2 additions & 2 deletions cmd/plugin/jenkins/main.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package main

import (
"github.com/merico-dev/stream/internal/pkg/plugin/jenkins"
"github.com/merico-dev/stream/pkg/util/log"
"github.com/devstream-io/devstream/internal/pkg/plugin/jenkins"
"github.com/devstream-io/devstream/pkg/util/log"
)

// NAME is the name of this DevStream plugin.
Expand Down
4 changes: 2 additions & 2 deletions cmd/plugin/jira-github-integ/main.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package main

import (
"github.com/merico-dev/stream/internal/pkg/plugin/jiragithub"
"github.com/merico-dev/stream/pkg/util/log"
"github.com/devstream-io/devstream/internal/pkg/plugin/jiragithub"
"github.com/devstream-io/devstream/pkg/util/log"
)

// NAME is the name of this DevStream plugin.
Expand Down
4 changes: 2 additions & 2 deletions cmd/plugin/kube-prometheus/main.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package main

import (
"github.com/merico-dev/stream/internal/pkg/plugin/kubeprometheus"
"github.com/merico-dev/stream/pkg/util/log"
"github.com/devstream-io/devstream/internal/pkg/plugin/kubeprometheus"
"github.com/devstream-io/devstream/pkg/util/log"
)

// NAME is the name of this DevStream plugin.
Expand Down
4 changes: 2 additions & 2 deletions cmd/plugin/openldap/main.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package main

import (
"github.com/merico-dev/stream/internal/pkg/plugin/openldap"
"github.com/merico-dev/stream/pkg/util/log"
"github.com/devstream-io/devstream/internal/pkg/plugin/openldap"
"github.com/devstream-io/devstream/pkg/util/log"
)

// NAME is the name of this DevStream plugin.
Expand Down
4 changes: 2 additions & 2 deletions cmd/plugin/trello-github-integ/main.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package main

import (
"github.com/merico-dev/stream/internal/pkg/plugin/trellogithub"
"github.com/merico-dev/stream/pkg/util/log"
"github.com/devstream-io/devstream/internal/pkg/plugin/trellogithub"
"github.com/devstream-io/devstream/pkg/util/log"
)

// NAME is the name of this DevStream plugin.
Expand Down
4 changes: 2 additions & 2 deletions cmd/plugin/trello/main.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package main

import (
"github.com/merico-dev/stream/internal/pkg/plugin/trello"
"github.com/merico-dev/stream/pkg/util/log"
"github.com/devstream-io/devstream/internal/pkg/plugin/trello"
"github.com/devstream-io/devstream/pkg/util/log"
)

// NAME is the name of this DevStream plugin.
Expand Down
6 changes: 3 additions & 3 deletions docs/README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@

[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat&logo=github&color=2370ff&labelColor=454545)](http://makeapullrequest.com)
[![Discord](https://img.shields.io/discord/844603288082186240.svg?style=flat?label=&logo=discord&logoColor=ffffff&color=747df7&labelColor=454545)](https://discord.gg/83rDG6ydVZ)
![Test](https://github.com/merico-dev/stream/actions/workflows/main-builder.yml/badge.svg)
[![Go Report Card](https://goreportcard.com/badge/github.com/merico-dev/stream)](https://goreportcard.com/report/github.com/merico-dev/stream)
[![Downloads](https://img.shields.io/github/downloads/merico-dev/stream/total.svg)](https://github.com/merico-dev/stream/releases)
![Test](https://github.com/devstream-io/devstream/actions/workflows/main-builder.yml/badge.svg)
[![Go Report Card](https://goreportcard.com/badge/github.com/devstream-io/devstream)](https://goreportcard.com/report/github.com/devstream-io/devstream)
[![Downloads](https://img.shields.io/github/downloads/devstream-io/devstream/total.svg)](https://github.com/devstream-io/devstream/releases)

# DevStream
</div>
Expand Down
12 changes: 6 additions & 6 deletions docs/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ There are three major parts:

Note: for simplicity, the CLI is named `dtm`(DevOps Tool Manager) instead of the full name DevStream.

Every time a user runs the `dtm` program, the execution transfers immediately into one of the "command" implementations in the [`devstream`](https://github.com/merico-dev/stream/tree/main/cmd/devstream) package, in which folder all commands' definitions reside.
Every time a user runs the `dtm` program, the execution transfers immediately into one of the "command" implementations in the [`devstream`](https://github.com/devstream-io/devstream/tree/main/cmd/devstream) package, in which folder all commands' definitions reside.

Then, each command calls the `pluginengine` package under [`internal/pkg`](https://github.com/merico-dev/stream/tree/main/internal/pkg/pluginengine).
Then, each command calls the `pluginengine` package under [`internal/pkg`](https://github.com/devstream-io/devstream/tree/main/internal/pkg/pluginengine).

The `pluginengine` calls the `configloader` first to read the local YAML config file into a struct.

Expand All @@ -40,19 +40,19 @@ It achieves the goal by calling the following modules:

### 2.1 Configuration Loader

Model types in package [`configloader`](https://github.com/merico-dev/stream/blob/main/internal/pkg/configloader/config.go#L19) represent the top-level configuration structure.
Model types in package [`configloader`](https://github.com/devstream-io/devstream/blob/main/internal/pkg/configloader/config.go#L19) represent the top-level configuration structure.

### 2.2 Plugin Manager

The [`pluginmanager`](https://github.com/merico-dev/stream/blob/main/internal/pkg/pluginmanager/manager.go) is in charge of downloading necessary plugins according to the configuration.
The [`pluginmanager`](https://github.com/devstream-io/devstream/blob/main/internal/pkg/pluginmanager/manager.go) is in charge of downloading necessary plugins according to the configuration.

If a plugin with the desired version already exists locally, it will not download it again.

### 2.3 State Manager

The [`statemanager`](https://github.com/merico-dev/stream/blob/main/internal/pkg/statemanager/manager.go) manages the "state", i.e., what has been done successfully and what not.
The [`statemanager`](https://github.com/devstream-io/devstream/blob/main/internal/pkg/statemanager/manager.go) manages the "state", i.e., what has been done successfully and what not.

The `statemanager` stores the state in a [`backend`](https://github.com/merico-dev/stream/blob/main/internal/pkg/backend/backend.go).
The `statemanager` stores the state in a [`backend`](https://github.com/devstream-io/devstream/blob/main/internal/pkg/backend/backend.go).

## 3 Plugin

Expand Down
2 changes: 1 addition & 1 deletion docs/best_practices/gitops.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ We should use the `dependency` according to the actual usage situation.

## Download DevStream (`dtm`)

Download the appropriate `dtm` version for your platform from [DevStream Releases](https://github.com/merico-dev/stream/releases).
Download the appropriate `dtm` version for your platform from [DevStream Releases](https://github.com/devstream-io/devstream/releases).

> Remember to rename the binary file to `dtm` so that it's easier to use. For example: `mv dtm-darwin-arm64 dtm`.
Expand Down
10 changes: 5 additions & 5 deletions docs/core_concepts.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ The architecture documentation explains how in general DevStream works. If you h

## 1 Config

- The _Config_ is a list of tools, defined in [here](https://github.com/merico-dev/stream/blob/main/internal/pkg/configloader/config.go#L19).
- Each _Tool_ has its Name, Plugin, and Options, as defined [here](https://github.com/merico-dev/stream/blob/main/internal/pkg/configloader/config.go#L24).
- The _Config_ is a list of tools, defined in [here](https://github.com/devstream-io/devstream/blob/main/internal/pkg/configloader/config.go#L19).
- Each _Tool_ has its Name, Plugin, and Options, as defined [here](https://github.com/devstream-io/devstream/blob/main/internal/pkg/configloader/config.go#L24).
- Each _Tool_ can have its dependencies, which are specified by the `dependsOn` keyword.

The dependency `dependsOn` is an array of strings, with each element being a dependency. Each dependency is named in the format of "NAME.PLUGIN". See [here](https://github.com/merico-dev/stream/blob/main/examples/quickstart.yaml#L16) for example.
The dependency `dependsOn` is an array of strings, with each element being a dependency. Each dependency is named in the format of "NAME.PLUGIN". See [here](https://github.com/devstream-io/devstream/blob/main/examples/quickstart.yaml#L16) for example.

## 2 State

- The _State_ is actually a map of states, as defined [here](https://github.com/merico-dev/stream/blob/main/internal/pkg/statemanager/state.go#L21).
- Each state in the map is a struct containing Name, Plugin, Options, and Resource, as defined [here](https://github.com/merico-dev/stream/blob/main/internal/pkg/statemanager/state.go#L14).
- The _State_ is actually a map of states, as defined [here](https://github.com/devstream-io/devstream/blob/main/internal/pkg/statemanager/state.go#L21).
- Each state in the map is a struct containing Name, Plugin, Options, and Resource, as defined [here](https://github.com/devstream-io/devstream/blob/main/internal/pkg/statemanager/state.go#L14).

## 3 Resource

Expand Down
Loading

0 comments on commit ff3427b

Please sign in to comment.