Skip to content

Commit

Permalink
Removed dedent for now
Browse files Browse the repository at this point in the history
  • Loading branch information
jason2020 committed Dec 28, 2022
1 parent 76de278 commit c395d45
Show file tree
Hide file tree
Showing 3 changed files with 7,009 additions and 7,142 deletions.
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"@types/react-dom": "^17.0.10",
"babelify": "^10.0.0",
"browserify": "^17.0.0",
"dedent": "^0.7.0",
"eslint-plugin-prettier": "^4.0.0",
"lodash": "^4.17.21",
"prettier": "^2.5.1",
Expand All @@ -33,7 +32,6 @@
"@babel/preset-env": "^7.16.7",
"@babel/preset-react": "^7.16.7",
"@babel/preset-typescript": "^7.14.5",
"@types/dedent": "^0.7.0",
"@types/lodash": "^4.14.184",
"@types/react-burger-menu": "^2.8.3",
"@typescript-eslint/eslint-plugin": "^4.33.0",
Expand Down
32 changes: 15 additions & 17 deletions src/components/shared/ManPages.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
import dedent from 'dedent';

interface ManPage {
[key: string]: string;
}

export const manPages: ManPage = {
whoami: dedent`
whoami: `
whoami – display effective user id
(DESCRIPTION SIMPLIFIED FOR LAB)`,
pwd: dedent`
pwd: `
pwd – return working directory name
(DESCRIPTION SIMPLIFIED FOR LAB)`,
ls: dedent`
ls: `
ls – list directory contents.
OPTIONS:
-a Include directory entries whose names begin with a dot (‘.’).
Expand All @@ -20,46 +18,46 @@ export const manPages: ManPage = {
modified, hour file last modified, minute file last modified, and the
pathname.
(DESCRIPTION SIMPLIFIED FOR LAB)`,
cd: dedent`
cd: `
cd — change the working directory
(DESCRIPTION SIMPLIFIED FOR LAB)`,
touch: dedent`
touch: `
touch – change file access and modification times
(DESCRIPTION SIMPLIFIED FOR LAB)`,
mkdir: dedent`
mkdir: `
mkdir – make directories
(DESCRIPTION SIMPLIFIED FOR LAB)`,
rmdir: dedent`
rmdir: `
rmdir – remove directories
(DESCRIPTION SIMPLIFIED FOR LAB)`,
cp: dedent`
cp: `
cp – copy files
(DESCRIPTION SIMPLIFIED FOR LAB)`,
mv: dedent`
mv: `
mv – move files
(DESCRIPTION SIMPLIFIED FOR LAB)`,
echo: dedent`
echo: `
echo – write arguments to the standard output
(DESCRIPTION SIMPLIFIED FOR LAB)`,
cat: dedent`
cat: `
cat – concatenate and print files
(DESCRIPTION SIMPLIFIED FOR LAB)`,
grep: dedent`
grep: `
grep - file pattern searcher. The grep utility searches any given input files, selecting lines that
match one or more patterns. By default, a pattern matches an input line
if the regular expression (RE) in the pattern matches the input line
without its trailing newline. An empty expression matches every line.
Each input line that matches at least one of the patterns is written to
the standard output.
(DESCRIPTION SIMPLIFIED FOR LAB)`,
find: dedent`
find: `
find – walk a file hierarchy. The find utility recursively descends the directory tree for each path
listed, evaluating an expression in terms of each file in the tree.
(DESCRIPTION SIMPLIFIED FOR LAB)`,
chmod: dedent`
chmod: `
chmod – change file modes or Access Control Lists.
(DESCRIPTION SIMPLIFIED FOR LAB)`,
clear: dedent`
clear: `
clear - clear the terminal screen
(DESCRIPTION SIMPLIFIED FOR LAB)`,
};
Loading

0 comments on commit c395d45

Please sign in to comment.