Skip to content
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

feat: new command dtm show status implementation #410

Merged
merged 8 commits into from
Apr 14, 2022

Conversation

daniel-hutao
Copy link
Member

@daniel-hutao daniel-hutao commented Apr 13, 2022

Signed-off-by: Daniel Hu [email protected]

Key Points

  • This is a breaking change.

Description

New command of dtm show status.

See #401 for more info.

Related Issues

close #401

Test

1/3. One Plugin Instance Installed

$ ./dtm show status --plugin=githubactions-golang --name=golang-demo-app        
Name: golang-demo-app
Plugin: githubactions-golang
Drifted: false
Options:
  branch: main
  build:
    command: go build ./...
    enable: true
  docker:
    enable: false
    repo: abc
  language:
    name: go
    version: "1.17"
  org: ""
  owner: daniel-hutao
  repo: go-webapp-repo1
  test:
    command: go test ./...
    coverage:
      enable: false
      output: coverage.out
      profile: -race -covermode=atomic
    enable: true
Status:
  workflowDir: /repos/daniel-hutao/go-webapp-repo1/contents/.github/workflows

$_

2/3. More than One Plugin Instances Installed

$ ./dtm show status                                                     

================= 1/2 =================

Name: go-webapp-repo1
Plugin: github-repo-scaffolding-golang
Drifted: true
Options:
  branch: main
  image_repo: a/b
  org: ""
  owner: daniel-hutao
  repo: go-webapp-repo1
Status:
  State:
    outputs:
      owner: daniel-hutao
      repo: go-webapp-repo1
      repoURL: https://github.com/daniel-hutao/go-webapp-repo1.git
    owner: daniel-hutao
    repoName: go-webapp-repo1
  Resource:
    org: ""
    outputs:
      org: ""
      owner: daniel-hutao
      repo: go-webapp-repo1
      repoURL: https://github.com/daniel-hutao/go-webapp-repo1.git
    owner: daniel-hutao
    repoName: go-webapp-repo1

================= 2/2 =================

Name: golang-demo-app
Plugin: githubactions-golang
Drifted: false
Options:
  branch: main
  build:
    command: go build ./...
    enable: true
  docker:
    enable: false
    repo: abc
  language:
    name: go
    version: "1.17"
  org: ""
  owner: daniel-hutao
  repo: go-webapp-repo1
  test:
    command: go test ./...
    coverage:
      enable: false
      output: coverage.out
      profile: -race -covermode=atomic
    enable: true
Status:
  workflowDir: /repos/daniel-hutao/go-webapp-repo1/contents/.github/workflows

$_

3/3.If Drifted

$ ./dtm show status --plugin=githubactions-golang --name=golang-demo-app
Name: golang-demo-app
Plugin: githubactions-golang
Drifted: true
Options:
  branch: main
  build:
    command: go build ./...
    enable: true
  docker:
    enable: false
    repo: abc
  language:
    name: go
    version: "1.17"
  org: ""
  owner: daniel-hutao
  repo: go-webapp-repo1
  test:
    command: go test ./...
    coverage:
      enable: false
      output: coverage.out
      profile: -race -covermode=atomic
    enable: true
Status:
  State:
    workflowDir: /1repos/daniel-hutao/go-webapp-repo1/contents/.github/workflows
  Resource:
    workflowDir: /repos/daniel-hutao/go-webapp-repo1/contents/.github/workflows

$ _

@daniel-hutao daniel-hutao marked this pull request as ready for review April 13, 2022 11:15
@daniel-hutao daniel-hutao self-assigned this Apr 13, 2022
@daniel-hutao daniel-hutao changed the title WIP: feat: new command dtm show status implementation feat: new command dtm show status implementation Apr 13, 2022
@daniel-hutao daniel-hutao merged commit 8edace0 into devstream-io:main Apr 14, 2022
@daniel-hutao daniel-hutao deleted the feat-status branch April 14, 2022 02:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Proposal: I would like to know which plugins I have installed with dtm and their status
3 participants