Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go

name: Go
name: Build & Test CLI

on:
push:
Expand All @@ -22,7 +22,7 @@ jobs:
go-version: '1.24'

- name: Build
run: go build -v ./...
run: make build-cli

- name: Test
run: go test -v ./...
run: go test -v ./cmd/cli
28 changes: 28 additions & 0 deletions .github/workflows/service-build_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go

name: Build & Test Service

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.24'

- name: Build
run: make build-service

- name: Test
run: go test -v ./cmd/service
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,14 @@
*.out

# Dependency directories (remove the comment below to include it)
# vendor/
vendor/

# Go workspace file
go.work
go.work.sum

# env file
.env

# bin file
bin/
3 changes: 3 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/*
Copyright © 2025 Codesphere Inc.
*/
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
build:
go build
build-cli:
go build -v -o ./bin/oms-cli ./cmd/cli

build-service:
go build -v -o ./bin/oms-svc ./cmd/service

35 changes: 34 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,35 @@
# Operations Management System Command Line Interface - OMS CLI
# Operations Management System - OMS

This repository contains the source for the operations management system. It
contains the sources for both the CLI and the Service.

## CLI
The CLI tool is used to bootstrap Codesphere cluster on customer sites and
replaces the formerly used private cloud installer.

### How to Build?

```shell
make build cli
```

### How to Test?


### How to Use?


## Service

### How to Build?

```shell
make build service
```

### How to Test?


### How to Use?


4 changes: 2 additions & 2 deletions cmd/install-codesphere.go → cmd/cli/install-codesphere.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
Copyright © 2025 NAME HERE <EMAIL ADDRESS>
Copyright © 2025 Codesphere Inc.
*/
package cmd
package cli

import (
"fmt"
Expand Down
4 changes: 2 additions & 2 deletions cmd/install.go → cmd/cli/install.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
Copyright © 2025 NAME HERE <EMAIL ADDRESS>
Copyright © 2025 Codesphere Inc.
*/
package cmd
package cli

import (
"fmt"
Expand Down
4 changes: 2 additions & 2 deletions cmd/list-codesphere.go → cmd/cli/list-codesphere.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
Copyright © 2025 NAME HERE <EMAIL ADDRESS>
Copyright © 2025 Codesphere Inc.
*/
package cmd
package cli

import (
"fmt"
Expand Down
4 changes: 2 additions & 2 deletions cmd/list.go → cmd/cli/list.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
Copyright © 2025 NAME HERE <EMAIL ADDRESS>
Copyright © 2025 Codesphere Inc.
*/
package cmd
package cli

import (
"fmt"
Expand Down
4 changes: 2 additions & 2 deletions cmd/root.go → cmd/cli/root.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
Copyright © 2025 NAME HERE <EMAIL ADDRESS>
Copyright © 2025 Codesphere Inc.
*/
package cmd
package cli

import (
"os"
Expand Down
4 changes: 2 additions & 2 deletions cmd/upgrade-codesphere.go → cmd/cli/upgrade-codesphere.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
Copyright © 2025 NAME HERE <EMAIL ADDRESS>
Copyright © 2025 Codesphere Inc.
*/
package cmd
package cli

import (
"fmt"
Expand Down
4 changes: 2 additions & 2 deletions cmd/upgrade.go → cmd/cli/upgrade.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
Copyright © 2025 NAME HERE <EMAIL ADDRESS>
Copyright © 2025 Codesphere Inc.
*/
package cmd
package cli

import (
"fmt"
Expand Down
3 changes: 3 additions & 0 deletions cmd/service/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package main

func main() {}
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ Copyright © 2025 NAME HERE <EMAIL ADDRESS>
package main

import (
"github.com/codesphere-cloud/oms/cmd"
"github.com/codesphere-cloud/oms/cmd/cli"
)

func main() {
cmd.Execute()
cli.Execute()
}
6 changes: 5 additions & 1 deletion pkg/codesphere/codesphere.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
package cs
/*
Copyright © 2025 Codesphere Inc.
*/

package codesphere

import "fmt"

Expand Down