Compare commits

..

5 Commits

Author SHA1 Message Date
ded4a0b102 bump version to 1.0.19 2025-02-25 14:17:31 -07:00
6184441706 Merge branch 'development' into development_bizmodel
* development:
  s
  bump version to 1.0.14
  ...

# Conflicts:
#	cli/hero.v
#	install_hero.sh
#	test_basic.vsh
2025-02-25 14:16:54 -07:00
5263798b11 s 2025-02-22 19:03:45 +03:00
29c2fccbe5 bump version to 1.0.14 2025-02-19 16:14:20 +03:00
975c07fc2e ... 2025-02-19 16:09:11 +03:00
11 changed files with 19 additions and 24 deletions

View File

@@ -51,7 +51,7 @@ fn do() ! {
mut cmd := Command{ mut cmd := Command{
name: 'hero' name: 'hero'
description: 'Your HERO toolset.' description: 'Your HERO toolset.'
version: '1.0.21' version: '1.0.19'
} }
// herocmds.cmd_run_add_flags(mut cmd) // herocmds.cmd_run_add_flags(mut cmd)

View File

@@ -4,7 +4,7 @@ set -e
os_name="$(uname -s)" os_name="$(uname -s)"
arch_name="$(uname -m)" arch_name="$(uname -m)"
version='1.0.21' version='1.0.19'
# Base URL for GitHub releases # Base URL for GitHub releases

View File

@@ -50,9 +50,6 @@ pub fn get_dir(args_ GetArgs) !Path {
mut p2 := get_no_check(args.path) mut p2 := get_no_check(args.path)
if args.check { if args.check {
p2.check() p2.check()
if args.delete {
p2.delete()!
}
p2.absolute() p2.absolute()
if p2.exist == .no { if p2.exist == .no {
if args.create { if args.create {
@@ -67,7 +64,9 @@ pub fn get_dir(args_ GetArgs) !Path {
if args.empty { if args.empty {
p2.empty()! p2.empty()!
} }
if args.delete {
p2.delete()!
}
} }
return p2 return p2
} }

View File

@@ -38,7 +38,7 @@ pub fn new(args NewArgs) !&DedupeStore {
return &DedupeStore{ return &DedupeStore{
radix: rt radix: rt
data: &db data: db
} }
} }

View File

@@ -36,27 +36,27 @@ fn deserialize_node(data []u8) !Node {
mut d := encoder.decoder_new(data) mut d := encoder.decoder_new(data)
// Read and verify version // Read and verify version
version_byte := d.get_u8()! version_byte := d.get_u8()
if version_byte != version { if version_byte != version {
return error('Invalid version byte: expected ${version}, got ${version_byte}') return error('Invalid version byte: expected ${version}, got ${version_byte}')
} }
// Read key segment // Read key segment
key_segment := d.get_string()! key_segment := d.get_string()
// Read value as []u8 // Read value as []u8
value_len := d.get_u16()! value_len := d.get_u16()
mut value := []u8{len: int(value_len)} mut value := []u8{len: int(value_len)}
for i in 0 .. int(value_len) { for i in 0 .. int(value_len) {
value[i] = d.get_u8()! value[i] = d.get_u8()
} }
// Read children // Read children
children_len := d.get_u16()! children_len := d.get_u16()
mut children := []NodeRef{cap: int(children_len)} mut children := []NodeRef{cap: int(children_len)}
for _ in 0 .. children_len { for _ in 0 .. children_len {
key_part := d.get_string()! key_part := d.get_string()
node_id := d.get_u32()! node_id := d.get_u32()
children << NodeRef{ children << NodeRef{
key_part: key_part key_part: key_part
node_id: node_id node_id: node_id
@@ -64,7 +64,7 @@ fn deserialize_node(data []u8) !Node {
} }
// Read leaf flag // Read leaf flag
is_leaf := d.get_u8()! == 1 is_leaf := d.get_u8() == 1
return Node{ return Node{
key_segment: key_segment key_segment: key_segment

View File

@@ -45,7 +45,8 @@ fn upload() ! {
fn install() ! { fn install() ! {
console.print_header('install bun') console.print_header('install bun')
osal.exec(cmd: 'curl -fsSL https://bun.sh/install | bash')! destroy()!
osal.exec(cmd: 'unset BUN_INSTALL && curl -fsSL https://bun.sh/install | bash')!
} }
fn destroy() ! { fn destroy() ! {

View File

@@ -3,7 +3,7 @@ module bun
import freeflowuniverse.herolib.data.paramsparser import freeflowuniverse.herolib.data.paramsparser
import os import os
pub const version = '1.2.2' pub const version = '1.2.3'
const singleton = true const singleton = true
const default = true const default = true

View File

@@ -12,6 +12,5 @@
"title": "ThreeFold Technology Vision" "title": "ThreeFold Technology Vision"
}, },
"buildDest":["root@info.ourworld.tf:/root/hero/www/info"], "buildDest":["root@info.ourworld.tf:/root/hero/www/info"],
"buildDestDev":["root@info.ourworld.tf:/root/hero/www/infodev"], "buildDestDev":["root@info.ourworld.tf:/root/hero/www/infodev"]
"copyright": "someone"
} }

View File

@@ -45,7 +45,6 @@ pub mut:
metadata MainMetadata metadata MainMetadata
build_dest []string @[json: 'buildDest'] build_dest []string @[json: 'buildDest']
build_dest_dev []string @[json: 'buildDestDev'] build_dest_dev []string @[json: 'buildDestDev']
copyright string = "someone"
} }
// Navbar config structures // Navbar config structures

View File

@@ -217,7 +217,7 @@ fn (mut site DocSite) template_install() ! {
build_templ := $tmpl('templates/build_src.sh') build_templ := $tmpl('templates/build_src.sh')
mut build2_ := site.path_src.file_get_new('build.sh')! mut build2_ := site.path_src.file_get_new('build.sh')!
build2_.template_write(build_templ, true)! build2_.template_write(build, true)!
build2_.chmod(0o700)! build2_.chmod(0o700)!
} }

View File

@@ -55,7 +55,4 @@ fn (mut self DocusaurusFactory) template_install(args TemplateInstallArgs) ! {
)! )!
} }
mut aa := template_path.dir_get("docs") or {return}
aa.delete()!
} }