Skip to content

Commit 887f93d

Browse files
Timna BrownTimna Brown
authored andcommitted
refactor: rename project to devopster-cli
- Rename crate: timbra-gitops-cli → devopster-cli - Rename binary: timbra → devopster - Rename config file: timbra-config.yaml → devopster-config.yaml - Update env var: TIMBRA_CONFIG → DEVOPSTER_CONFIG - Update remote URL to MicrosoftCloudEssentials-LearningHub/devopster-cli - Update user-agent strings, Docker image tags, devcontainer name, CI workflow - Update README to reflect new name and binary - All 7 tests pass, clippy clean
1 parent 777e86c commit 887f93d

25 files changed

Lines changed: 3810 additions & 1 deletion

.devcontainer/Dockerfile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
FROM mcr.microsoft.com/devcontainers/rust:1-1-bookworm
2+
3+
RUN rustup component add clippy rustfmt
4+
5+
RUN apt-get update \
6+
&& apt-get install -y --no-install-recommends \
7+
build-essential \
8+
ca-certificates \
9+
git \
10+
make \
11+
pkg-config \
12+
&& rm -rf /var/lib/apt/lists/*
13+
14+
WORKDIR /workspaces/devopster-cli
15+
16+
COPY . .
17+
18+
RUN cargo fetch
19+
20+
CMD ["sleep", "infinity"]

.devcontainer/devcontainer.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"name": "devopster-cli",
3+
"build": {
4+
"dockerfile": "Dockerfile",
5+
"context": ".."
6+
},
7+
"remoteUser": "vscode",
8+
"postCreateCommand": "bash .devcontainer/post-create.sh",
9+
"customizations": {
10+
"vscode": {
11+
"extensions": [
12+
"rust-lang.rust-analyzer",
13+
"vadimcn.vscode-lldb",
14+
"tamasfe.even-better-toml",
15+
"redhat.vscode-yaml",
16+
"ms-azuretools.vscode-docker"
17+
],
18+
"settings": {
19+
"editor.formatOnSave": true,
20+
"rust-analyzer.check.command": "clippy"
21+
}
22+
}
23+
}
24+
}

.devcontainer/post-create.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
4+
make setup

.dockerignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
target/
2+
.git/
3+
.devcontainer/.cache/

.gitattributes

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Normalize line endings to LF on commit for all text files
2+
* text=auto eol=lf
3+
4+
# Rust source
5+
*.rs text eol=lf diff=rust
6+
7+
# Cargo manifests and lock files
8+
Cargo.toml text eol=lf
9+
Cargo.lock text eol=lf
10+
11+
# YAML / TOML / JSON
12+
*.yaml text eol=lf
13+
*.yml text eol=lf
14+
*.toml text eol=lf
15+
*.json text eol=lf
16+
17+
# Shell scripts
18+
*.sh text eol=lf
19+
20+
# Markdown and plain text
21+
*.md text eol=lf
22+
*.txt text eol=lf
23+
24+
# Docker
25+
Dockerfile text eol=lf
26+
.dockerignore text eol=lf
27+
28+
# Makefile — tabs are significant, keep them
29+
Makefile text eol=lf
30+
31+
# Binaries — do not mangle
32+
*.png binary
33+
*.jpg binary
34+
*.jpeg binary
35+
*.gif binary
36+
*.ico binary
37+
*.wasm binary

.github/workflows/ci.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: Build container image
15+
run: docker build -t devopster-cli-ci .
16+
- name: Run tests in container
17+
run: docker run --rm devopster-cli-ci make test

.gitignore

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
target/
2+
.devcontainer/.cache/
3+
.env
4+
.env.*
5+
*.log
6+
devopster-config.yaml
7+
.DS_Store
8+
Thumbs.db
9+
10+
# Rust build artifacts
11+
*.rs.bk
12+
13+
# Editor and local workspace files
14+
.idea/
15+
.fleet/
16+
17+
# Container and temporary files
18+
*.tmp
19+
*.temp

0 commit comments

Comments
 (0)