fix: Rename freeflowuniverse to incubaid
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
module pathlib
|
||||
|
||||
import freeflowuniverse.herolib.core.texttools
|
||||
import incubaid.herolib.core.texttools
|
||||
import os
|
||||
|
||||
@[heap]
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
module pathlib
|
||||
|
||||
import os
|
||||
import freeflowuniverse.herolib.ui.console
|
||||
import incubaid.herolib.ui.console
|
||||
// import time
|
||||
|
||||
@[params]
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
module pathlib
|
||||
|
||||
import os
|
||||
// import freeflowuniverse.herolib.ui.console
|
||||
// import incubaid.herolib.ui.console
|
||||
|
||||
// path needs to be existing
|
||||
// linkpath is where the link will be (the symlink who points to path)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import freeflowuniverse.herolib.core.pathlib { Path }
|
||||
import freeflowuniverse.herolib.ui.console
|
||||
import incubaid.herolib.core.pathlib { Path }
|
||||
import incubaid.herolib.ui.console
|
||||
import os
|
||||
|
||||
const testpath = os.dir(@FILE) + '/examples/test_path'
|
||||
|
||||
@@ -2,8 +2,8 @@ module pathlib
|
||||
|
||||
import os
|
||||
import regex
|
||||
// import freeflowuniverse.herolib.core.smartid
|
||||
import freeflowuniverse.herolib.ui.console
|
||||
// import incubaid.herolib.core.smartid
|
||||
import incubaid.herolib.ui.console
|
||||
|
||||
@[params]
|
||||
pub struct ListArgs {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import freeflowuniverse.herolib.core.pathlib
|
||||
import freeflowuniverse.herolib.ui.console
|
||||
import incubaid.herolib.core.pathlib
|
||||
import incubaid.herolib.ui.console
|
||||
import os
|
||||
|
||||
const testpath = os.dir(@FILE) + '/testdata'
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
module pathlib
|
||||
|
||||
import os
|
||||
import freeflowuniverse.herolib.ui.console
|
||||
import incubaid.herolib.ui.console
|
||||
|
||||
@[params]
|
||||
pub struct RsyncArgs {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
module pathlib
|
||||
|
||||
import freeflowuniverse.herolib.data.paramsparser
|
||||
import incubaid.herolib.data.paramsparser
|
||||
|
||||
type Filter0 = fn (mut Path, mut paramsparser.Params) !bool
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
module pathlib
|
||||
|
||||
// import freeflowuniverse.herolib.core.smartid
|
||||
// import incubaid.herolib.core.smartid
|
||||
|
||||
// // sids_acknowledge .
|
||||
// // means our redis server knows about the sid's found, so we know which ones to generate new
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
module pathlib
|
||||
|
||||
import freeflowuniverse.herolib.core.texttools
|
||||
import incubaid.herolib.core.texttools
|
||||
import os
|
||||
|
||||
@[params]
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
module pathlib
|
||||
|
||||
import os
|
||||
import freeflowuniverse.herolib.core.texttools
|
||||
import incubaid.herolib.core.texttools
|
||||
import time
|
||||
import crypto.md5
|
||||
import rand
|
||||
import freeflowuniverse.herolib.ui.console
|
||||
import incubaid.herolib.ui.console
|
||||
|
||||
// check path exists
|
||||
pub fn (mut path Path) exists() bool {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import freeflowuniverse.herolib.core.pathlib
|
||||
import incubaid.herolib.core.pathlib
|
||||
import os
|
||||
import freeflowuniverse.herolib.ui.console
|
||||
import incubaid.herolib.ui.console
|
||||
|
||||
const testpath = os.dir(@FILE) + '/examples/test_path'
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ The pathlib module provides a robust way to handle file system operations. Here'
|
||||
## 1. Basic Path Creation
|
||||
|
||||
```v
|
||||
import freeflowuniverse.herolib.core.pathlib
|
||||
import incubaid.herolib.core.pathlib
|
||||
|
||||
// Get a basic path object
|
||||
mut path := pathlib.get('/some/path')
|
||||
@@ -110,6 +110,7 @@ mut wd := pathlib.get_wd()
|
||||
## Features
|
||||
|
||||
The module handles common edge cases:
|
||||
|
||||
- Automatically expands ~ to home directory
|
||||
- Creates parent directories as needed
|
||||
- Provides proper error handling with V's result type
|
||||
@@ -119,6 +120,7 @@ The module handles common edge cases:
|
||||
## Path Object Structure
|
||||
|
||||
Each Path object contains:
|
||||
|
||||
- `path`: The actual path string
|
||||
- `cat`: Category (file/dir/link)
|
||||
- `exist`: Existence status
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
module pathlib
|
||||
|
||||
import freeflowuniverse.herolib.core.texttools
|
||||
import incubaid.herolib.core.texttools
|
||||
import os
|
||||
import freeflowuniverse.herolib.ui.console
|
||||
import incubaid.herolib.ui.console
|
||||
|
||||
// template is the text coming from template engine.
|
||||
pub fn template_write(template_ string, dest string, overwrite bool) ! {
|
||||
|
||||
Reference in New Issue
Block a user