Skip to content

Commit 1b91e15

Browse files
committed
organize support files and add RhodeCode sponsor
1 parent dae03f7 commit 1b91e15

File tree

11 files changed

+26
-9
lines changed

11 files changed

+26
-9
lines changed

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div align='center'>
2-
<img src='logo.svg' width=280>
2+
<img src='support/img/bashly-logo.svg' width=280>
33

44
# Bashly - Bash CLI Framework and Generator
55

@@ -13,7 +13,7 @@ Create feature-rich bash scripts using simple YAML configuration
1313

1414
---
1515

16-
![demo](demo/cast.gif)
16+
![demo](support/demo/cast.gif)
1717

1818
</div>
1919

@@ -27,6 +27,11 @@ usually handled by a framework in any other programming language.
2727
It is available both as a [ruby gem](https://rubygems.org/gems/bashly) and as
2828
a [docker image](https://hub.docker.com/r/dannyben/bashly).
2929

30+
## Bashly is Sponsored By
31+
32+
<a target='_blank' href="https://rhodecode.com/"><img src='support/img/RhodeCode-logo.png' width=280></a>
33+
34+
3035
## Documentation
3136

3237
- [Bashly Homepage][docs]
@@ -64,7 +69,7 @@ Bashly is responsible for:
6469
- **Bash completions**.
6570
- and more.
6671

67-
## Contributing / Support
72+
## Contributing / Support
6873

6974
If you experience any issue, have a question or a suggestion, or if you wish
7075
to contribute, feel free to [open an issue][issues] or

runfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
require "byebug"
22
require 'bashly'
3-
require_relative 'helpers/example'
3+
require_relative 'support/runfile/example'
44

55
title "Bashly Developer Toolbelt"
66
summary "Runfile tasks for building the Bashly gem"
77
version Bashly::VERSION
88

99
import_gem 'runfile-tasks/gem', gemname: 'bashly'
1010
import_gem 'runfile-tasks/docker', image: 'dannyben/bashly', version: Bashly::VERSION
11-
import 'helpers/examples'
12-
import 'helpers/debug'
11+
import 'support/runfile/examples'
12+
import 'support/runfile/debug'
1313

1414
help "Run shellcheck on all examples"
1515
action :shellcheck do
@@ -56,7 +56,7 @@ help "Generate changelog and append old changelog"
5656
action :changelog do
5757
system "git changelog --save"
5858
# append older changelog (prior to switching to git-changelog)
59-
system "cat .changelog.old.md >> CHANGELOG.md"
59+
system "cat support/.changelog.old.md >> CHANGELOG.md"
6060

6161
# Fix typos
6262
File.write "CHANGELOG.md", File.read("CHANGELOG.md").gsub('repeatableflags', 'repeatable flags')
File renamed without changes.
File renamed without changes.
File renamed without changes.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Type(Command, Delay=2000) {
1919

2020
F12::
2121
Type("{#} Press F11 to abort at any time")
22-
Type("cd ./demo")
22+
Type("cd ./support/demo")
2323
Type("rm -rf myapp")
2424
; Type("termtosvg " Outfile " -t " Template)
2525
Type("rm cast.json {;} asciinema rec cast.json")
@@ -56,7 +56,7 @@ F12::
5656
Type("exit")
5757
Type("agg --font-size 20 cast.json cast.gif")
5858
Sleep 400
59-
Type("cd ..")
59+
Type("cd ../../")
6060
Type("{#} Done")
6161
Return
6262

support/img/RhodeCode-logo.png

33.5 KB
Loading
File renamed without changes.

support/runfile/debug.runfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
action do
2+
uri = "git:https://github.com/DannyBen/bashly.git//spec/fixtures/libraries@master"
3+
4+
matches = uri.match(%r{git:(?<url>.*\.git)//?(?<path>[^@]+)?@?(?<ref>.*)})
5+
6+
p matches[:url]
7+
p matches[:path]
8+
p matches[:ref]
9+
10+
11+
12+
end

0 commit comments

Comments
 (0)