summaryrefslogtreecommitdiff
path: root/Components/CurrentDir
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-11-28 17:31:34 +0100
committerMinteck <contact@minteck.org>2022-11-28 17:31:34 +0100
commit7923aa8942b55884320ef2428417e3ee4b121613 (patch)
tree7993632f2898b1998f25b11ce40a8d2eb3d44730 /Components/CurrentDir
downloadmistyos-og-mane.tar.gz
mistyos-og-mane.tar.bz2
mistyos-og-mane.zip
Initial commitHEADmane
Diffstat (limited to 'Components/CurrentDir')
-rw-r--r--Components/CurrentDir/index.js3
-rw-r--r--Components/CurrentDir/metadata.yml20
2 files changed, 23 insertions, 0 deletions
diff --git a/Components/CurrentDir/index.js b/Components/CurrentDir/index.js
new file mode 100644
index 0000000..9d954fc
--- /dev/null
+++ b/Components/CurrentDir/index.js
@@ -0,0 +1,3 @@
+module.exports = () => {
+ console.log(process.cwd());
+} \ No newline at end of file
diff --git a/Components/CurrentDir/metadata.yml b/Components/CurrentDir/metadata.yml
new file mode 100644
index 0000000..a8f5a32
--- /dev/null
+++ b/Components/CurrentDir/metadata.yml
@@ -0,0 +1,20 @@
+description: Returns the name of the current working directory
+internal: true
+
+aliases:
+ - pwd
+ - cwd
+
+manual:
+ summary: |
+ This command returns the current working directory (CWD) commands run from.
+
+ parameters: []
+
+ final: null
+
+ examples: []
+
+ compatibility:
+ mistyos: '>=1.0.0'
+ kernel: '>=5.10.0' \ No newline at end of file