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

Develop #9

Merged
merged 28 commits into from
Nov 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
f3ead32
feat: parsing args
abdellatif-temsamani Oct 30, 2023
e633cc8
feat: tests
abdellatif-temsamani Oct 30, 2023
5dfe5b5
feat: languages
abdellatif-temsamani Oct 31, 2023
a2233a4
Merge pull request #2 from abdellatif-temsamani/feature/args
abdellatif-temsamani Oct 31, 2023
feccfee
fix: args and help menu
abdellatif-temsamani Oct 31, 2023
bddd9a5
hotfix: exit 0
abdellatif-temsamani Nov 1, 2023
6a63283
fix: unknown args
abdellatif-temsamani Nov 1, 2023
6084e1e
Merge pull request #3 from abdellatif-temsamani/feature/templates
abdellatif-temsamani Nov 1, 2023
43a5b38
feat: templates
abdellatif-temsamani Nov 4, 2023
196da98
feat: link to project page
abdellatif-temsamani Nov 7, 2023
5f226bd
refactor: unknown args
abdellatif-temsamani Nov 7, 2023
6f90f34
rm: tests
abdellatif-temsamani Nov 7, 2023
e964ebc
ci(test)
abdellatif-temsamani Nov 7, 2023
a60a88a
fix: help menu
abdellatif-temsamani Nov 7, 2023
bed4c17
fix: help menu
abdellatif-temsamani Nov 7, 2023
05b17f4
fix: unknown args
abdellatif-temsamani Nov 7, 2023
d010950
ci: fix test run
abdellatif-temsamani Nov 7, 2023
c5be6cd
ci: fix test run
abdellatif-temsamani Nov 7, 2023
4deb4f7
ci: test run
abdellatif-temsamani Nov 7, 2023
d7a7d02
ci: test run
abdellatif-temsamani Nov 7, 2023
bc3fd2b
fix: macos installation
abdellatif-temsamani Nov 7, 2023
99ae615
fix: macos installation
abdellatif-temsamani Nov 7, 2023
0e7ed27
ci: test run
abdellatif-temsamani Nov 7, 2023
4043e8f
fix: test run
abdellatif-temsamani Nov 7, 2023
498ad27
Merge pull request #5 from abdellatif-temsamani/feature/templates
abdellatif-temsamani Nov 7, 2023
281f01a
feat: create CMakeLists.txt
abdellatif-temsamani Nov 7, 2023
05fce8d
fix: install win
abdellatif-temsamani Nov 7, 2023
d89ac8d
Merge pull request #8 from abdellatif-temsamani/feature/templates
abdellatif-temsamani Nov 7, 2023
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
43 changes: 43 additions & 0 deletions .github/workflows/run.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
name: Test run

on:
pull_request:
branches: ["main", "develop"]

env:
CARGO_TERM_COLOR: always

jobs:
run-linux:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Build
run: ./install_linux.sh

- name: run
run: cargo run -- --name testrun

run-windows:
runs-on: windows-latest

steps:
- uses: actions/checkout@v3
- name: Build
run: .\install_win.bat

- name: run
run: cargo run -- --name testrun

run-macos:
runs-on: macos-latest

steps:
- uses: actions/checkout@v3
- name: Build
run: ./install_macos.sh

- name: run
run: cargo run -- --name testrun
36 changes: 24 additions & 12 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,32 @@
name: Rust
---
name: Test build

on:
pull_request:
branches: [ "main", "develop" ]
pull_request:
branches: ["main", "develop"]

env:
CARGO_TERM_COLOR: always
CARGO_TERM_COLOR: always

jobs:
build:
build-linux:
runs-on: ubuntu-latest

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose --release
build-windows:
runs-on: windows-latest

steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose --release
build-macos:
runs-on: macos-latest

steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose --release
41 changes: 41 additions & 0 deletions .github/workflows/todo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
name: Create issues from TODOs

on:
workflow_dispatch:
inputs:
importAll:
default: false
required: false
type: boolean
description: Enable, if you want to import all TODOs. Runs on checked out branch! Only use if you're sure what you are doing.
push:
branches:
- develop

permissions:
issues: write
repository-projects: read
contents: read

jobs:
todos:
runs-on: ubuntu-latest
permissions:
issues: write
repository-projects: read
contents: read

steps:
- uses: actions/checkout@v3

- name: Run Issue Bot
uses: derjuulsn/todo-issue@main
with:
excludePattern: "^(node_modules/)"
blobLines: 7
blobLinesBefore: 4
keywords: "FIXME,BUG,WONTFIX,TODO,WARN,HACK,PERF,OPTIM,NOTE"
reopenClosed: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
65 changes: 65 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
argmap = "1.1.2"
struct-field-names-as-array = "0.3.0"
17 changes: 17 additions & 0 deletions install_linux.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/sh

# building cmake-init
cargo build --release

# creating necessary directories
mkdir -p "$HOME/.local/bin/"
mkdir -p "$HOME/.local/share/cmake-init/"


# copying files
cp ./target/release/cmake-init ~/.local/bin/
cp -r ./templates ~/.local/share/cmake-init/

echo "export PATH=$PATH:~/.local/bin" >> ~/.bashrc

echo "Installation complete!"
17 changes: 17 additions & 0 deletions install_macos.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/sh

# building cmake-init
cargo build --release

# creating necessary directories
mkdir -p "$HOME/.local/bin/"
mkdir -p "$HOME/Library/Application Support/cmake-init/templates"


# copying files
cp ./target/release/cmake-init "$HOME/.local/bin/"
cp -r ./templates "$HOME/Library/Application Support/cmake-init/"

echo "export PATH=$PATH:~/.local/bin" >> ~/.bashrc

echo "Installation complete!"
15 changes: 15 additions & 0 deletions install_win.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
@echo off

cargo build --release

mkdir "%APPDATA%\\cmake-init\\templates"
xcopy /s /y "templates" "%APPDATA%\\cmake-init\\templates"


REM cope target\release\cmake-init.exe to %USERPROFILE%\bin
mkdir "%USERPROFILE%\\bin"
xcopy /s /y "target\\release\\cmake-init.exe" "%USERPROFILE%\\bin\\cmake-init.exe"


REM add %USERPROFILE%\bin to PATH
setx PATH "%USERPROFILE%\\bin;%PATH%"
Loading